Skip to content

Instantly share code, notes, and snippets.

@rjharmon
Forked from aslakhellesoy/Suggestion #1.rb
Created January 29, 2009 21:33
Show Gist options
  • Save rjharmon/54764 to your computer and use it in GitHub Desktop.
Save rjharmon/54764 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
it 'should do something' do
lambda do
@foo.should_not be_nil
end.on_error "this message"
end
describe "needs external software", :detail => 2 do
describe "needs imagemagic", :detail => 3 do
describe "convert binary" do
it "should be found" do
...
end
it "should have png support" do
...
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment