mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
comparing parent proc with call
This commit is contained in:
parent
ed0e877021
commit
9e778b1015
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ describe HTTParty do
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue