discourse/spec/models
Lee Machin dadb7eaa23 fix crash caused by incorrect query in scope
setting all categories to be secured led to a blank screen on all pages

use stabby lambda for consistency in class

make the test a little more concise

- move the local assignments into let blocks for
reusability

- remove calls to `to_a`, which aren't needed

- use 'be_empty' instead of '[]' to be consistent
with the other matchers in the test

add a test for the `secured` scope with multiple
secured categories
2013-05-15 22:26:52 +01:00
..
admin_dashboard_data_spec.rb ignore assets 2013-04-30 12:43:59 +10:00
admin_log_spec.rb Add ability to destroy a user with 0 posts 2013-04-12 16:53:00 -04:00
category_featured_topic_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
category_featured_user_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
category_spec.rb fix crash caused by incorrect query in scope 2013-05-15 22:26:52 +01:00
draft_sequence_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
draft_spec.rb Move draft sequence incrementing out of after_save 2013-03-18 17:54:50 -04:00
email_log_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
email_token_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
error_log_spec.rb Convert a lot of :a => b to a: b and bring peace to the world 2013-03-25 05:07:36 +05:30
group_spec.rb more group progress, UI getting there, controller mostly done 2013-05-09 17:37:34 +10:00
hot_topic_spec.rb Add score, percent_rank to topics. Adds HotTopic model and consolidated job to calculate 2013-03-28 15:39:54 -04:00
incoming_link_spec.rb store ip address and current user with incoming links 2013-04-26 16:18:55 +10:00
incoming_links_report_spec.rb Change the title Visits to Clicks in referral tables on admin dashboard 2013-05-06 11:56:35 -04:00
invite_spec.rb better consistency around email case sensitivity 2013-04-15 02:20:33 +02:00
message_bus_observer_spec.rb Initial release of Discourse 2013-02-05 14:16:51 -05:00
notification_spec.rb disable observers in tests, enable as needed, tests are 20% faster 2013-05-14 11:59:55 +10:00
post_action_spec.rb clear flags on reply to notify moderators 2013-05-13 11:48:01 +10:00
post_alert_observer_spec.rb disable observers in tests, enable as needed, tests are 20% faster 2013-05-14 11:59:55 +10:00
post_reply_spec.rb Initial release of Discourse 2013-02-05 14:16:51 -05:00
post_spec.rb disable observers in tests, enable as needed, tests are 20% faster 2013-05-14 11:59:55 +10:00
post_timing_spec.rb disable observers in tests, enable as needed, tests are 20% faster 2013-05-14 11:59:55 +10:00
report_spec.rb change "visitor" trust level to "new user" 2013-04-17 16:11:24 -07:00
site_content_spec.rb Can change TOS content via site content editor 2013-04-05 15:21:55 -04:00
site_customization_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
site_setting_spec.rb FIX: setting min_topic_title_length is ignored 2013-04-10 14:54:10 +02:00
topic_allowed_user_spec.rb Initial release of Discourse 2013-02-05 14:16:51 -05:00
topic_invite_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
topic_link_click_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
topic_link_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
topic_spec.rb disable observers in tests, enable as needed, tests are 20% faster 2013-05-14 11:59:55 +10:00
topic_user_spec.rb better consistency check 2013-04-08 13:02:20 +10:00
upload_spec.rb added some tests for uploads 2013-04-07 17:52:46 +02:00
user_action_spec.rb disable observers in tests, enable as needed, tests are 20% faster 2013-05-14 11:59:55 +10:00
user_email_observer_spec.rb Send emails to users who are watching topics 2013-02-27 15:38:44 -05:00
user_open_id_spec.rb Initial release of Discourse 2013-02-05 14:16:51 -05:00
user_search_spec.rb before: 2013-04-22 11:05:54 +10:00
user_spec.rb :s/moderator?/staff/g ... our naming was kind of crazy, renamed moderator? to staff 2013-05-02 17:22:27 +10:00
user_visit_spec.rb save it ... 2013-04-08 08:21:54 +10:00
username_validator_spec.rb Extract the validation of Username format in own class to avoid 2013-02-08 12:54:47 -05:00
view_spec.rb Initial release of Discourse 2013-02-05 14:16:51 -05:00