Skip to content

Commit 95be60f

Browse files
committed
Update example app specs to use RackTestClient
1 parent 31c94a2 commit 95be60f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/spec/acceptance/orders_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require 'rspec_api_documentation/dsl'
33

44
resource "Orders" do
5-
let(:client) { RspecApiDocumentation::TestClient.new(self, :headers => {"HTTP_ACCEPT" => "application/json", "CONTENT_TYPE" => "application/json"}) }
5+
let(:client) { RspecApiDocumentation::RackTestClient.new(self, :headers => {"HTTP_ACCEPT" => "application/json", "CONTENT_TYPE" => "application/json"}) }
66

77
let(:order) { Order.create(:name => "Old Name", :paid => true, :email => "[email protected]") }
88

@@ -48,7 +48,7 @@
4848

4949
order = JSON.parse(response_body)
5050

51-
client.get(URI.parse(last_response.headers["location"]).path)
51+
client.get(URI.parse(response_headers["location"]).path)
5252
status.should == 200
5353
end
5454
end

0 commit comments

Comments
 (0)