summaryrefslogtreecommitdiff
path: root/features/step_definitions/mastermind.rb
blob: 6427dcc31652ffd0924dc30f668454080ddab169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# mastermind.rb

Given /^I am not yet playing$/ do
end

When /^I start a new game$/ do
	@messenger = StringIO.new
	Mastermind::Game.new(@messenger)
	game.start
end

Then /^the game should say "(.$)"$/ do |message|
	@messenger.string.split("\n").should include(message)
end