aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/admin_request_controller_spec.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-01-20 13:30:42 +0000
committerRobin Houston <robin.houston@gmail.com>2012-01-20 13:30:42 +0000
commit742ea045560f91e472901bea3d932669f1c50d61 (patch)
tree57bd0907607a1dd5ee6a0e3663abd57e98ae31c9 /spec/controllers/admin_request_controller_spec.rb
parenta37e9f21f00af03d271cb40de7d849cb8941bc02 (diff)
Improved test isolation
The test “AdminRequestController when administering requests shows a public body” would fail when this spec is run on its own twice in succession.
Diffstat (limited to 'spec/controllers/admin_request_controller_spec.rb')
-rw-r--r--spec/controllers/admin_request_controller_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/controllers/admin_request_controller_spec.rb b/spec/controllers/admin_request_controller_spec.rb
index 635d73b9e..77f336eee 100644
--- a/spec/controllers/admin_request_controller_spec.rb
+++ b/spec/controllers/admin_request_controller_spec.rb
@@ -5,6 +5,10 @@ describe AdminRequestController, "when administering requests" do
fixtures :users, :public_bodies, :public_body_translations, :public_body_versions, :info_requests, :raw_emails, :incoming_messages, :outgoing_messages, :comments, :info_request_events, :track_things
before { basic_auth_login @request }
+ before(:each) do
+ load_raw_emails_data(raw_emails)
+ end
+
it "shows the index/list page" do
get :index
end