Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix faulty spec

  • Loading branch information...
commit a16bc23f2a739dc49a902536169c009a5ab501eb 1 parent 5e626c1
@ConradIrwin ConradIrwin authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 spec/ampex_spec.rb
View
6 spec/ampex_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.