Skip to content

Instantly share code, notes, and snippets.

@dchelimsky
Created January 29, 2009 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dchelimsky/54750 to your computer and use it in GitHub Desktop.
Save dchelimsky/54750 to your computer and use it in GitHub Desktop.
it 'should do something' do
on_failure warn_that "@foo shouldn't be nil" do
@foo.should_not be_nil
end
end
it 'should do something' do
explain_that "@foo shouldn't be nil" unless
@foo.should_not be_nil
end
end
it 'should do something' do
on_failure do
@foo.should_not be_nil
end.report "this message"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment