]> git.pld-linux.org Git - packages/ruby-thin.git/blob - rspec2-null-object.patch
new, version 1.5.0
[packages/ruby-thin.git] / rspec2-null-object.patch
1 --- a/spec/backends/swiftiply_client_spec.rb
2 +++ b/spec/backends/swiftiply_client_spec.rb
3 @@ -3,7 +3,7 @@
4  describe Backends::SwiftiplyClient do
5    before do
6      @backend = Backends::SwiftiplyClient.new('0.0.0.0', 3333)
7 -    @backend.server = mock('server', :null_object => true)
8 +    @backend.server = mock('server').as_null_object
9    end
10    
11    it "should connect" do
12 @@ -26,7 +26,7 @@
13    before do
14      @connection = SwiftiplyConnection.new(nil)
15      @connection.backend = Backends::SwiftiplyClient.new('0.0.0.0', 3333)
16 -    @connection.backend.server = mock('server', :null_object => true)
17 +    @connection.backend.server = mock('server').as_null_object
18    end
19    
20    it do
21 --- a/spec/connection_spec.rb
22 +++ b/spec/connection_spec.rb
23 @@ -3,7 +3,7 @@
24  describe Connection do
25    before do
26      EventMachine.stub(:send_data)
27 -    @connection = Connection.new(mock('EM', :null_object => true))
28 +    @connection = Connection.new(mock('EM').as_null_object)
29      @connection.post_init
30      @connection.backend = mock("backend", :ssl? => false)
31      @connection.app = proc do |env|
This page took 0.067493 seconds and 3 git commands to generate.