Permalink
Browse files

Fix faulty spec

  • Loading branch information...
1 parent 5e626c1 commit a16bc23f2a739dc49a902536169c009a5ab501eb @ConradIrwin ConradIrwin committed Nov 28, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 spec/ampex_spec.rb
View
@@ -36,9 +36,11 @@
it "should not be possible to intercept #to_proc" do
b = Object.new
def intercept(b)
- b.respond_to? :to_proc
+ b.to_proc
+ rescue NoMethodError => e
+ e.class
end
- [{}].each(&X[intercept(b)] = b).should == [{false => b}]
+ [{}].each(&X[intercept(b)] = b).should == [{NoMethodError => b}]
end
it "should preserve existing #to_proc" do

0 comments on commit a16bc23

Please sign in to comment.