Created
July 25, 2014 23:45
-
-
Save pumpkincouture/d9119f9e8dd764377213 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
require './FizzBuzzGame' | |
describe FizzBuzzGame do | |
before :each do | |
@FBGame=FizzBuzzGame.new | |
end | |
describe "#new" do | |
it "Creates a new instance of FizzBuzzGame" do | |
expect(@FBGame).to be_an_instance_of(FizzBuzzGame) | |
end | |
end | |
describe '#run' do | |
it "runs the game with the numbers passed in as parameters for the loop" do | |
expect(@FBGame.run(1,20)).to eq(20) | |
end | |
it "this is an example that should throw a failure" do | |
expect(@FBGame.run).should_receive(x,y).not_return(y) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment