Create a gist now

Instantly share code, notes, and snippets.

Simple setups
describe "taking one down" do
let(:beer_count){50}
context "while we still have beers" do
it "will subtract 1 from the total number of beers" do
beers_on_the_wall = BeersOnTheWall.new(beer_count)
beers_on_the_wall.take_one_down
expect(beers_on_the_wall.count).to eql (beer_count - 1)
end
end
context "when all the beers have gone" do
it " will tell us there are no beers left" do
beers_on_the_wall = BeersOnTheWall.new(1)
beers_on_the_wall.take_one_down
expect(beers_on_the_wall.count).to eql "no more bottles of beers on the wall"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment