spec/unit/key/embeddable/response_spec.rb in rest_model-0.2.1 vs spec/unit/key/embeddable/response_spec.rb in rest_model-0.2.3

- old
+ new

@@ -17,10 +17,10 @@ subject.to_resource(example).should == result end context "when this key shouldn't be visible on resource" do it "returns an empty hash" do - subject.should_receive(:visible?).and_return false + subject.should_receive(:visible?) {false} subject.to_resource(example).should == {} end end end