Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
Quick spec to describe Github issue #116
Browse files Browse the repository at this point in the history
  • Loading branch information
geeksam authored and jc00ke committed Jan 7, 2012
1 parent 5f0e7e6 commit 809b638
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/test/gh116.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# https://github.com/MagLev/maglev/issues/116
#

require File.expand_path('simple', File.dirname(__FILE__))

class Foo
end

foo = Foo.new
begin
foo.bar
rescue NoMethodError => e
test e.message, "NoMethodError: undefined method `bar' for Foo", "Undefined method for instance of Foo"
end

begin
Foo.bar
rescue NoMethodError => e
test e.message, "NoMethodError: undefined method `bar' for Foo:Class", "Undefined method for class object Foo"
end

0 comments on commit 809b638

Please sign in to comment.