spec/context_spec.rb in arrthorizer-0.3.1 vs spec/context_spec.rb in arrthorizer-0.3.2
- old
+ new
@@ -18,10 +18,10 @@
end
end
context "when an object responding to #to_hash is provided" do
before :each do
- arg.stub(:to_hash).and_return({ key => value })
+ allow(arg).to receive(:to_hash).and_return({ key => value })
end
it "returns an Arrthorizer::Context" do
result = Arrthorizer::Context(arg)