Skip to content

Commit

Permalink
Remove time from method calls as it is not used within the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Franklin Webber committed Oct 23, 2011
1 parent 33f6498 commit 49a9a15
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions spec/quiz_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@


it "should be enqueued to be asked" do it "should be enqueued to be asked" do


subject.should_receive(:enqueue_the_question).with(time,'person',"ask polar 'Should I continue the presentation?' for 3 minutes") subject.should_receive(:enqueue_the_question).with('person',"ask polar 'Should I continue the presentation?' for 3 minutes")
subject.handle time,'person',"@quizmaster ask polar 'Should I continue the presentation?' for 3 minutes" subject.handle time,'person',"@quizmaster ask polar 'Should I continue the presentation?' for 3 minutes"


end end
Expand Down Expand Up @@ -93,7 +93,7 @@
subject.should_receive(:create_the_question_based_on_type).and_return(expected_question) subject.should_receive(:create_the_question_based_on_type).and_return(expected_question)


subject.should_receive(:set_current_question).with(expected_question,'3') subject.should_receive(:set_current_question).with(expected_question,'3')
subject.process_the_question time,'person',"ask polar 'Should I continue the presentation?' for 3 minutes" subject.process_the_question 'person',"ask polar 'Should I continue the presentation?' for 3 minutes"


end end


Expand Down Expand Up @@ -171,7 +171,7 @@
it "should store positive response for the user" do it "should store positive response for the user" do


subject.should_receive(:store_positive_response_for).with('person') subject.should_receive(:store_positive_response_for).with('person')
subject.handle_response(time,'person','yes') subject.handle_response('person','yes')


end end


Expand All @@ -182,7 +182,7 @@
it "should store a positive response for the user" do it "should store a positive response for the user" do


subject.should_receive(:store_positive_response_for).with('person') subject.should_receive(:store_positive_response_for).with('person')
subject.handle_response(time,'person','y') subject.handle_response('person','y')


end end
end end
Expand All @@ -192,7 +192,7 @@
it "should store negative response for the user" do it "should store negative response for the user" do


subject.should_receive(:store_negative_response_for).with('person') subject.should_receive(:store_negative_response_for).with('person')
subject.handle_response(time,'person','no') subject.handle_response('person','no')


end end


Expand All @@ -203,7 +203,7 @@
it "should store negative response for the user" do it "should store negative response for the user" do


subject.should_receive(:store_negative_response_for).with('person') subject.should_receive(:store_negative_response_for).with('person')
subject.handle_response(time,'person','n') subject.handle_response('person','n')


end end


Expand All @@ -227,7 +227,7 @@


it "should reply that there is 1 YES vote" do it "should reply that there is 1 YES vote" do


subject.handle_response(time,'person','yes') subject.handle_response('person','yes')
subject.results.should eq "1 YES vote and 0 NO votes" subject.results.should eq "1 YES vote and 0 NO votes"


end end
Expand All @@ -238,7 +238,7 @@


it "should reply that there is 1 NO vote" do it "should reply that there is 1 NO vote" do


subject.handle_response(time,'person','no') subject.handle_response('person','no')
subject.results.should eq "0 YES votes and 1 NO vote" subject.results.should eq "0 YES votes and 1 NO vote"


end end
Expand All @@ -249,18 +249,18 @@


it "should count as one vote" do it "should count as one vote" do


subject.handle_response(time,'person','no') subject.handle_response('person','no')
subject.handle_response(time,'person','no') subject.handle_response('person','no')
subject.handle_response(time,'person','no') subject.handle_response('person','no')
subject.results.should eq "0 YES votes and 1 NO vote" subject.results.should eq "0 YES votes and 1 NO vote"


end end


it "should only count the last vote" do it "should only count the last vote" do


subject.handle_response(time,'person','yes') subject.handle_response('person','yes')
subject.handle_response(time,'person','yes') subject.handle_response('person','yes``')
subject.handle_response(time,'person','no') subject.handle_response('person','no')
subject.results.should eq "0 YES votes and 1 NO vote" subject.results.should eq "0 YES votes and 1 NO vote"


end end
Expand Down

0 comments on commit 49a9a15

Please sign in to comment.