diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-02 13:43:57 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-02 14:20:37 +1100 |
commit | c6eb7777a8d467ab6befc0974e44beb4f47f737a (patch) | |
tree | f313741665a5c14b54d50ebe251516c344241346 /spec/controllers | |
parent | f52554c212e32bb2ff37abfb58d7eecdcd8d4cee (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.rb | 11 |
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 |