From c6eb7777a8d467ab6befc0974e44beb4f47f737a Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Sat, 2 Mar 2013 13:43:57 +1100 Subject: Test for what happens when user is playing the classification game --- spec/controllers/request_controller_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'spec/controllers/request_controller_spec.rb') 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 -- cgit v1.2.3