Skip to content

Instantly share code, notes, and snippets.

@jarib
Created August 13, 2009 18:52
Show Gist options
  • Save jarib/167385 to your computer and use it in GitHub Desktop.
Save jarib/167385 to your computer and use it in GitHub Desktop.
require "rubygems"
require "spec/autorun"
%w[foo baar baazs].each do |thing|
describe "my thing, at the moment #{thing.inspect}" do
it "should be larger than 4 chars" do
thing.size.should > 4
end
end
end
# FF.
#
# 1)
# 'my thing, at the moment "foo" should be larger than 4 chars' FAILED
# expected: > 4,
# got: 3
# (eval):9:
#
# 2)
# 'my thing, at the moment "baar" should be larger than 4 chars' FAILED
# expected: > 4,
# got: 4
# (eval):9:
#
# Finished in 0.00352 seconds
#
# 3 examples, 2 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment