Permalink
Browse files

Quick spec to describe Github issue #116

  • Loading branch information...
1 parent 5f0e7e6 commit 809b63827dd10ec51b8b8c01d110bb5bd9e32c87 @geeksam geeksam committed with jc00ke Dec 30, 2011
Showing with 20 additions and 0 deletions.
  1. +20 −0 src/test/gh116.rb
View
@@ -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.