discourse/spec
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
..
components disable observers in tests, enable as needed, tests are 20% faster 2013-05-14 11:59:55 +10:00
controllers Topic Auto-Close: admins and mods can set a topic to automatically close after a number of days 2013-05-13 12:53:52 -04:00
fabricators more group progress, UI getting there, controller mostly done 2013-05-09 17:37:34 +10:00
fixtures added rottentomatoes.com onebox 2013-04-28 16:24:03 -04:00
integrity prevent double work in the i18n integrity specs 2013-03-23 15:49:31 +01:00
javascripts Fix regression: default to JSON type on GET requests. 2013-05-07 17:17:21 -04:00
mailers Swap out "@" for "via" in email From field 2013-02-27 19:03:57 -05:00
models fix crash caused by incorrect query in scope 2013-05-15 22:26:52 +01:00
phantom_js formatted some tests 2013-02-27 03:18:23 +01:00
requests collapse some slow tests 2013-04-22 11:06:10 +10:00
support speed up tests 2013-04-22 13:48:41 +10:00
views/omniauth_callbacks Convert a lot of :a => b to a: b and bring peace to the world 2013-03-25 05:07:36 +05:30
spec_helper.rb disable observers in tests, enable as needed, tests are 20% faster 2013-05-14 11:59:55 +10:00