Skip to content

Instantly share code, notes, and snippets.

@cyril
Created September 2, 2015 23:14
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 cyril/875dcc9f52155d528e42 to your computer and use it in GitHub Desktop.
Save cyril/875dcc9f52155d528e42 to your computer and use it in GitHub Desktop.
A test for the Duck class in Ruby
$ ruby duck_spec.rb
..I
1. Info: undefined method `sings' for #<Duck:0x007fb60383b740> (NoMethodError).
Ran 3 tests in 0.00038 seconds
100% compliant - 1 infos, 0 failures, 0 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment