Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add failing NameError#receiver spec
  • Loading branch information
tak1n committed Jan 21, 2016
1 parent 9cf58de commit b48d087
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/ruby/core/exception/receiver_spec.rb
@@ -0,0 +1,10 @@
require File.expand_path('../../../spec_helper', __FILE__)

describe "NameError#receiver" do
it "returns the receiver of the method call where the error occurred" do
receiver = 'receiver'
exception = receiver.doesnt_exist rescue $!

exception.receiver.should equal(receiver)
end
end
1 change: 1 addition & 0 deletions spec/tags/ruby/core/exception/receiver_tags.txt
@@ -0,0 +1 @@
fails:NameError#receiver returns the receiver of the method call where the error occurred

0 comments on commit b48d087

Please sign in to comment.