diff options
author | lizconlan <liz@mysociety.org> | 2014-08-04 10:20:05 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-09-22 12:39:03 +0100 |
commit | 31c1f47a6bca88b2be9fb463721fb26698e79f82 (patch) | |
tree | 5aaf4cc10898d961bce126088c5574266f792f51 /spec/controllers/public_body_controller_spec.rb | |
parent | 373ee8b3ee6835b81fb7eb4ffec59db41b3925c1 (diff) |
Reinstate automatic loading of categories on get if no categories defined
Diffstat (limited to 'spec/controllers/public_body_controller_spec.rb')
-rw-r--r-- | spec/controllers/public_body_controller_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/controllers/public_body_controller_spec.rb b/spec/controllers/public_body_controller_spec.rb index f64975580..6ff1a7215 100644 --- a/spec/controllers/public_body_controller_spec.rb +++ b/spec/controllers/public_body_controller_spec.rb @@ -7,6 +7,7 @@ describe PublicBodyController, "when showing a body" do render_views before(:each) do + PublicBodyCategory.stub!(:load_categories) load_raw_emails_data get_fixtures_xapian_index end @@ -75,6 +76,10 @@ end describe PublicBodyController, "when listing bodies" do render_views + before(:each) do + PublicBodyCategory.stub!(:load_categories) + end + it "should be successful" do get :list response.should be_success |