spec/attune/client_spec.rb in attune-0.0.4 vs spec/attune/client_spec.rb in attune-0.0.5
- old
+ new
@@ -16,11 +16,10 @@
end
let(:options){ {endpoint: 'http://example.com:8080/', middleware: middleware} }
let(:stubs) { Faraday::Adapter::Test::Stubs.new }
let(:middleware) do
- Faraday::Builder.new do |builder|
- builder.use Attune::ParamFlattener
+ Faraday::RackBuilder.new do |builder|
builder.adapter :test, stubs
end
end
describe "API errors" do