Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made tests compatible with ruby 1.8.7.

  • Loading branch information...
commit 427f9c3f21e70885af6f27199e1bfb0cb7d90236 1 parent 44ae4ef
@panthomakos authored
View
4 spec/lib/sham/config/assign_spec.rb
@@ -20,12 +20,12 @@ class AssignTester; end
end
it 'prioritizes passed options' do
- instance.should_receive(:id=).with(2)
+ instance.should_receive(:public_send).with('id=', 2)
config.options(:id => 2).sham
end
it 'merges passed options' do
- instance.should_receive(:name=).with('A')
+ instance.should_receive(:public_send).with('name=', 'A')
config.options(:name => 'A').sham
end
View
2  spec/lib/sham/config_spec.rb
@@ -158,7 +158,7 @@ class B; end
instance = stub
parent.stub(:new){ instance }
- instance.should_receive(:first=).with('first')
+ instance.should_receive(:public_send).with('first=', 'first')
parent.sham!.should == instance
end

0 comments on commit 427f9c3

Please sign in to comment.
Something went wrong with that request. Please try again.