Skip to content

Instantly share code, notes, and snippets.

@swalke16
Created December 18, 2009 19:09
Show Gist options
  • Save swalke16/259688 to your computer and use it in GitHub Desktop.
Save swalke16/259688 to your computer and use it in GitHub Desktop.
context "after three guesses" do
it "should print the summary" do
@game.start(stub('generator' , :code => %w[r y g c]))
@game.guess(%w[b w y r])
@game.guess(%w[r y g g])
@game.guess(%w[r c y c])
@messenger.should_receive(:puts).with(<<-SUMMARY)
b w y r ww
r y g g bbb
r c y c bbw
SUMMARY
@game.guess(['summary' ])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment