diff options
author | Robin Houston <robin@lenny.robin> | 2011-06-09 16:07:04 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-06-09 16:07:04 +0100 |
commit | 2d205979d6e75f36ea511645b07be1bfd9a57f66 (patch) | |
tree | 3a9418d27f2e4058730160dd815fe996fecfe194 /spec/controllers/public_body_controller_spec.rb | |
parent | 4d077dc48fb0589dbf401a131d524b23ab0d2258 (diff) |
Make sure the :public_body_translation fixture is included everywhere the :public_bodies fixture is, because the PublicBody objects do not work as expected without it.
Diffstat (limited to 'spec/controllers/public_body_controller_spec.rb')
-rw-r--r-- | spec/controllers/public_body_controller_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/public_body_controller_spec.rb b/spec/controllers/public_body_controller_spec.rb index cef720069..d43ebdcdd 100644 --- a/spec/controllers/public_body_controller_spec.rb +++ b/spec/controllers/public_body_controller_spec.rb @@ -4,7 +4,7 @@ require 'json' describe PublicBodyController, "when showing a body" do integrate_views - fixtures :public_bodies, :public_body_versions, :public_body_translations + fixtures :public_bodies, :public_body_translations, :public_body_versions it "should be successful" do get :show, :url_name => "dfh" @@ -44,7 +44,7 @@ end describe PublicBodyController, "when listing bodies" do integrate_views - fixtures :public_bodies, :public_body_versions, :public_body_translations + fixtures :public_bodies, :public_body_translations, :public_body_versions it "should be successful" do get :list @@ -114,7 +114,7 @@ end describe PublicBodyController, "when showing JSON version for API" do - fixtures :public_bodies + fixtures :public_bodies, :public_body_translations it "should be successful" do get :show, :url_name => "dfh", :format => "json" |