Permalink
Browse files

comparing parent proc with call

  • Loading branch information...
Nathan Lilienthal
Nathan Lilienthal committed Mar 25, 2013
1 parent ed0e877 commit 9e778b10156d23e5b412c34da3d21449ff6dfd34
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/httparty_spec.rb
View
@@ -601,7 +601,7 @@ def self.name
it 'should dup the proc on the child class' do
imaginary_option = lambda { 2 * 3.14 }
@parent.default_options[:imaginary_option] = imaginary_option
- @parent.default_options[:imaginary_option].should be_equal imaginary_option
+ @parent.default_options[:imaginary_option].call.should == imaginary_option.call
@child1.default_options[:imaginary_option]
@child1.default_options[:imaginary_option].call.should == imaginary_option.call
@child1.default_options[:imaginary_option].should_not be_equal imaginary_option

0 comments on commit 9e778b1

Please sign in to comment.