Skip to content

Commit

Permalink
Start on the faraday adapter specs.
Browse files Browse the repository at this point in the history
The specs are a port of the faraday integration tests.
  • Loading branch information
benburkert committed Jun 3, 2013
1 parent 36867af commit 2cab180
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions spec/adapter/faraday_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
require 'spec_helper'
require 'rack/client/adapter/faraday'

describe Faraday::Adapter::RackClient do

let(:url) { URI.join(@base_url, '/faraday') }

let(:conn) do
Faraday.new(:url => url) do |faraday|
faraday.adapter(:rack_client) do |builder|
builder.use Rack::Lint
builder.run Rack::Client::Handler::NetHTTP.new
end
end
end

describe 'GET' do

it 'retrieves the response body' do
conn.get('echo').body.should == 'get'
end

end
end

0 comments on commit 2cab180

Please sign in to comment.