spec/rspec/integration/indexer_spec.rb in caricature-0.7.2 vs spec/rspec/integration/indexer_spec.rb in caricature-0.7.5
- old
+ new
@@ -13,10 +13,10 @@
it "should work without expectations" do
@cons.call_index_on_class(@ind, "key1").should be_nil
end
it "should work with an expectation" do
- @ind.when_receiving(:__getitem__).return("5")
+ @ind.when_receiving(:Item).return("5")
@cons.call_index_on_class(@ind, "key1").should == "5"
end
\ No newline at end of file