aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-03-02 13:43:57 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-03-02 14:20:37 +1100
commitc6eb7777a8d467ab6befc0974e44beb4f47f737a (patch)
treef313741665a5c14b54d50ebe251516c344241346 /spec/controllers
parentf52554c212e32bb2ff37abfb58d7eecdcd8d4cee (diff)
Test for what happens when user is playing the classification game
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/request_controller_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb
index fbd0c5ec5..788ea9785 100644
--- a/spec/controllers/request_controller_spec.rb
+++ b/spec/controllers/request_controller_spec.rb
@@ -1347,6 +1347,17 @@ describe RequestController, "when classifying an information request" do
flash[:notice].should == 'Thank you for updating this request!'
end
+ context "playing the classification game" do
+ before :each do
+ session[:request_game] = true
+ end
+
+ it "should continue the game after classifying a request" do
+ post_status("rejected")
+ flash[:notice].should =~ /There are some more requests below for you to classify/
+ response.should redirect_to play_url
+ end
+ end
end
end