aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/request_game_controller_spec.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-07-29 10:02:57 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-07-29 10:10:52 +0100
commit7573586c3be6318e19ae02ff008dfb2a576b5980 (patch)
treedf84452dada69c64ebe0c09d51a994b9715fd67f /spec/controllers/request_game_controller_spec.rb
parent51a74f4b275fab25ac567843ab99b885a8444789 (diff)
To make tests pass with RawEmails on the filesystem, instead of hacky dependency on existence of text_binary field in raw_emails model, rewrite tests (and their fixtures) to explicitly load data from FS when raw_emails are used.
Diffstat (limited to 'spec/controllers/request_game_controller_spec.rb')
-rw-r--r--spec/controllers/request_game_controller_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/controllers/request_game_controller_spec.rb b/spec/controllers/request_game_controller_spec.rb
index ce507fad1..4883bfdd6 100644
--- a/spec/controllers/request_game_controller_spec.rb
+++ b/spec/controllers/request_game_controller_spec.rb
@@ -3,6 +3,9 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe RequestGameController, "when playing the game" do
fixtures :info_requests, :info_request_events, :public_bodies, :public_body_translations, :users, :incoming_messages, :raw_emails, :outgoing_messages # all needed as integrating views
+ before(:each) do
+ load_raw_emails_data(raw_emails)
+ end
it "should show the game homepage" do
get :play