Commit 72c27ee
Changed files (3)
spec
spec/unit/container_spec.rb
@@ -132,12 +132,12 @@ module Spank
let(:other_interceptor) { TestInterceptor.new("second") }
before :each do
- subject
- .register(:command) { command }
- .intercept(:run).with(interceptor).and(other_interceptor)
- subject
- .register(:single_command) { command }
- .intercept(:run).with(interceptor)
+ subject.
+ register(:command) { command }.
+ intercept(:run).with(interceptor).and(other_interceptor)
+ subject.
+ register(:single_command) { command }.
+ intercept(:run).with(interceptor)
subject.resolve(:command).run("hi")
end
spec/unit/ioc_spec.rb
@@ -8,9 +8,9 @@ describe Spank::IOC do
let(:component) { double }
before :each do
- allow(container).to receive(:resolve)
- .with(:dbconnection)
- .and_return(component)
+ allow(container).to receive(:resolve).
+ with(:dbconnection).
+ and_return(component)
Spank::IOC.bind_to(container)
end
spec/unit/proxy_spec.rb
@@ -13,7 +13,7 @@ module Spank
context "when an interceptor is registered" do
context "when invoking a method" do
- let(:interceptor) { double("interceptor", :intercept => "") }
+ let(:interceptor) { double("interceptor", intercept: "") }
before :each do
subject.add_interceptor(:greet, interceptor)