Skip to content

Instantly share code, notes, and snippets.

@tcrayford
Created April 19, 2012 11:01
Show Gist options
  • Save tcrayford/2420249 to your computer and use it in GitHub Desktop.
Save tcrayford/2420249 to your computer and use it in GitHub Desktop.
specify "the first time rspec has made me sad" do
class CustomError < RuntimeError; end
expect do
raise CustomError.new('what')
end.to raise(CustomError.new('what'))
end
specify "the first time rspec has made me angry" do
class CustomError < RuntimeError; end
expect do
raise CustomError.new('what')
end.to raise(CustomError.new('what'))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment