Skip to content

Commit

Permalink
Add failing test for raise ArgumentError, "ouch!".
Browse files Browse the repository at this point in the history
  • Loading branch information
macournoyer committed Apr 11, 2009
1 parent a4a8007 commit 6cd6591
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/pending/raise_with_type.rb
@@ -0,0 +1,15 @@
def guacamole
raise ArgumentError, "ouch!"
end

def deep_in
guacamole
end

deep_in
puts "oh no boy, ur not coming here!"

# => ArgumentError: ouch!
# => from test/raise.rb:2:in `guacamole'
# => from test/raise.rb:6:in `deep_in'
# => from test/raise.rb:10

0 comments on commit 6cd6591

Please sign in to comment.