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