Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made tests compatible with ruby 1.8.7.

  • Loading branch information...
commit 427f9c3f21e70885af6f27199e1bfb0cb7d90236 1 parent 44ae4ef
Pan Thomakos authored
4 spec/lib/sham/config/assign_spec.rb
View
@@ -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
2  spec/lib/sham/config_spec.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.