Permalink
Browse files

More tests

  • Loading branch information...
1 parent 4fcd396 commit ebaa26b25de1a20e2b533ca7ad6cd3be78dce613 @nevir nevir committed Apr 6, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/features/wtf_spec.rb
@@ -70,6 +70,12 @@ def singleton_thing
result.should include("def mixed_in_method")
end
+ it "should not freak out if the target method doesn't have ruby source" do
+ result = Time.new.wtf? :utc, false
+
+ result.should == "Time#utc defined at Unknown Location"
+ end
+
it "should raise a sane error if a method doesn't ext" do
expect { Thing.new.wtf? :not_here, false }.to raise_error(NameError)
end

0 comments on commit ebaa26b

Please sign in to comment.