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

Commit

Permalink
Use named subject in specs
Browse files Browse the repository at this point in the history
Change-Id: If0f62a1373552dac5dfbdc59dd699f40923d28c5
  • Loading branch information
pietern committed Jul 18, 2012
1 parent 3c9aab1 commit 2378815
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion warden-protocol/spec/copy_in_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::CopyInResponse)
request.create_response.should be_a(Warden::Protocol::CopyInResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/copy_out_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::CopyOutResponse)
request.create_response.should be_a(Warden::Protocol::CopyOutResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::CreateResponse)
request.create_response.should be_a(Warden::Protocol::CreateResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/destroy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::DestroyResponse)
request.create_response.should be_a(Warden::Protocol::DestroyResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/echo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::EchoResponse)
request.create_response.should be_a(Warden::Protocol::EchoResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/info_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::InfoResponse)
request.create_response.should be_a(Warden::Protocol::InfoResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/limit_disk_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::LimitDiskResponse)
request.create_response.should be_a(Warden::Protocol::LimitDiskResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/limit_memory_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::LimitMemoryResponse)
request.create_response.should be_a(Warden::Protocol::LimitMemoryResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/link_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::LinkResponse)
request.create_response.should be_a(Warden::Protocol::LinkResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/list_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
its(:type_underscored) { should == "list" }

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::ListResponse)
request.create_response.should be_a(Warden::Protocol::ListResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/net_in_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::NetInResponse)
request.create_response.should be_a(Warden::Protocol::NetInResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/net_out_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::NetOutResponse)
request.create_response.should be_a(Warden::Protocol::NetOutResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/ping_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
its(:type_underscored) { should == "ping" }

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::PingResponse)
request.create_response.should be_a(Warden::Protocol::PingResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/run_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::RunResponse)
request.create_response.should be_a(Warden::Protocol::RunResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/spawn_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::SpawnResponse)
request.create_response.should be_a(Warden::Protocol::SpawnResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/stop_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::StopResponse)
request.create_response.should be_a(Warden::Protocol::StopResponse)
end
end

Expand Down
2 changes: 1 addition & 1 deletion warden-protocol/spec/stream_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
end

it "should respond to #create_response" do
subject.create_response.should be_a(Warden::Protocol::StreamResponse)
request.create_response.should be_a(Warden::Protocol::StreamResponse)
end
end

Expand Down

0 comments on commit 2378815

Please sign in to comment.