summaryrefslogtreecommitdiff
path: root/spec/mastermind/game_spec.rb
blob: e67cf852a3639e1c9e6c96cb8be15a1796cbd77b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# game_spec.rb
require File.join(File.dirname(__FILE__), "/../spec_helper")

module Mastermind
	describe Game do
		context "starting up" do
			it "should send a welcome message" do
				messenger = mock("messenger")
				game = Game.new(messenger)
				messenger.should_receive(:puts).with("Welcome to Mastermind!")
				game.start
			end
		end
	end
end