Commit 7539647

mo khan <mo@mokhan.ca>
2015-01-03 19:18:52
run transpec.
1 parent fec255a
Changed files (2)
spec/unit/ioc_spec.rb
@@ -10,14 +10,14 @@ describe Spank::IOC do
     let(:component) { double }
 
     before :each do
-      container.stub(:resolve).with(:idbconnection).and_return(component)
+      allow(container).to receive(:resolve).with(:idbconnection).and_return(component)
       Spank::IOC.bind_to(container)
     end
 
     let(:result) { Spank::IOC.resolve(:idbconnection) }
 
     it "resolves the item from the container" do
-      result.should == component
+      expect(result).to eq(component)
     end
   end
 
spec/unit/proxy_spec.rb
@@ -9,7 +9,7 @@ module Spank
       before { sut.greet('blah') }
 
       it "should send the message to the target" do
-        target.should have_received(:greet).with('blah')
+        expect(target).to have_received(:greet).with('blah')
       end
     end
 
@@ -22,7 +22,7 @@ module Spank
           sut.greet("blah")
         end
         it "should allow the interceptor to intercept the call" do
-          interceptor.should have_received(:intercept)
+          expect(interceptor).to have_received(:intercept)
         end
       end