Created
September 14, 2008 20:57
-
-
Save mlangenberg/10764 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'Car' do | |
describe "when starting" do | |
before :each do | |
@key = Key.new (or mock if Key.new requires too much setup code) | |
@car = Car.new(@key) | |
end | |
it "should insert key" do | |
@key.expects(:insert) | |
@car.start | |
end | |
it "should turn key" do | |
@key.expects(:turn) | |
@car.start | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment