Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucashungaro/110592 to your computer and use it in GitHub Desktop.
Save lucashungaro/110592 to your computer and use it in GitHub Desktop.
context "a movie shelf" do
setup { @shelf = MovieShelf.new }
should "show how many movies are stored" do
juno = Movie.new("Juno")
transformers = Movie.new("Transformers")
shelf.store juno
shelf.store transformers
assert_equal 2, shelf.movies_count
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment