Blame rubygem-thin-rspec2-null-object.patch
|
|
c1552a6 |
--- a/spec/backends/swiftiply_client_spec.rb
|
|
|
c1552a6 |
+++ b/spec/backends/swiftiply_client_spec.rb
|
|
|
c1552a6 |
@@ -3,7 +3,7 @@
|
|
|
c1552a6 |
describe Backends::SwiftiplyClient do
|
|
|
c1552a6 |
before do
|
|
|
c1552a6 |
@backend = Backends::SwiftiplyClient.new('0.0.0.0', 3333)
|
|
|
c1552a6 |
- @backend.server = mock('server', :null_object => true)
|
|
|
c1552a6 |
+ @backend.server = mock('server').as_null_object
|
|
|
c1552a6 |
end
|
|
|
c1552a6 |
|
|
|
c1552a6 |
it "should connect" do
|
|
|
c1552a6 |
@@ -26,7 +26,7 @@
|
|
|
c1552a6 |
before do
|
|
|
c1552a6 |
@connection = SwiftiplyConnection.new(nil)
|
|
|
c1552a6 |
@connection.backend = Backends::SwiftiplyClient.new('0.0.0.0', 3333)
|
|
|
c1552a6 |
- @connection.backend.server = mock('server', :null_object => true)
|
|
|
c1552a6 |
+ @connection.backend.server = mock('server').as_null_object
|
|
|
c1552a6 |
end
|
|
|
c1552a6 |
|
|
|
c1552a6 |
it do
|
|
|
c1552a6 |
--- a/spec/connection_spec.rb
|
|
|
c1552a6 |
+++ b/spec/connection_spec.rb
|
|
|
5c5b69d |
@@ -3,7 +3,7 @@
|
|
|
c1552a6 |
describe Connection do
|
|
|
c1552a6 |
before do
|
|
|
5c5b69d |
EventMachine.stub(:send_data)
|
|
|
c1552a6 |
- @connection = Connection.new(mock('EM', :null_object => true))
|
|
|
c1552a6 |
+ @connection = Connection.new(mock('EM').as_null_object)
|
|
|
c1552a6 |
@connection.post_init
|
|
|
c1552a6 |
@connection.backend = mock("backend", :ssl? => false)
|
|
|
c1552a6 |
@connection.app = proc do |env|
|