Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Update em-warden-client deps
Browse files Browse the repository at this point in the history
Bump rspec

Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>
  • Loading branch information
swetharepakula authored and Michael Fraenkel committed Jan 5, 2016
1 parent 2304ac4 commit 09c37bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion em-warden-client/em-warden-client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ Gem::Specification.new do |gem|
gem.add_dependency('warden-client')

gem.add_development_dependency('rake')
gem.add_development_dependency('rspec', "~> 2.11.0")
gem.add_development_dependency('rspec', "~> 3.0")
end
18 changes: 9 additions & 9 deletions em-warden-client/spec/fiber_aware_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
client = server.create_fiber_aware_client
Fiber.new do
client.connect
client.connected?.should be_true
expect(client.connected?).to be true
EM.stop
end.resume
end
Expand Down Expand Up @@ -40,9 +40,9 @@
client = server.create_fiber_aware_client
Fiber.new do
client.connect
client.connected?.should be_true
expect(client.connected?).to be true
client.disconnect
client.connected?.should be_false
expect(client.connected?).to be false
EM.stop
end.resume
end
Expand All @@ -67,7 +67,7 @@
expected_response = Warden::Protocol::EchoResponse.new(:message => "world")

handler = double()
handler.should_receive(request.class.type_underscored).and_return(expected_response)
allow(handler).to receive(request.class.type_underscored).and_return(expected_response)
server = MockWardenServer.new(handler, socket_path)
actual_response = nil

Expand All @@ -81,15 +81,15 @@
end.resume
end

actual_response.should == expected_response
expect(actual_response).to eq(expected_response)
end

it "should raise error payloads" do
request = Warden::Protocol::EchoRequest.new(:message => "hello world")
expected_response = MockWardenServer::Error.new("test error")

handler = double()
handler.should_receive(request.class.type_underscored).and_raise(expected_response)
allow(handler).to receive(request.class.type_underscored).and_raise(expected_response)
server = MockWardenServer.new(handler, socket_path)

em do
Expand Down Expand Up @@ -124,7 +124,7 @@
response = Warden::Protocol::EchoResponse.new(:message => "world")

handler = double()
handler.should_receive(request.class.type_underscored).and_return(response)
allow(handler).to receive(request.class.type_underscored).and_return(response)
server = MockWardenServer.new(handler, socket_path)
actual_response = nil

Expand All @@ -138,15 +138,15 @@
end.resume
end

actual_response.should == "world"
expect(actual_response).to eq("world")
end

it "should raise error payloads" do
request = Warden::Protocol::EchoRequest.new(:message => "hello")
response = MockWardenServer::Error.new("test error")

handler = double()
handler.should_receive(request.class.type_underscored).and_raise(response)
allow(handler).to receive(request.class.type_underscored).and_raise(response)
server = MockWardenServer.new(handler, socket_path)

em do
Expand Down

0 comments on commit 09c37bf

Please sign in to comment.