spec/integration/rack_server_spec.rb in alephant-publisher-request-0.1.2 vs spec/integration/rack_server_spec.rb in alephant-publisher-request-0.2.0
- old
+ new
@@ -3,10 +3,11 @@
describe Alephant::Publisher::Request do
include Rack::Test::Methods
let (:response) { instance_double(Faraday::Response, :status => 200, :body => nil) }
let (:base_path) { File.join(File.dirname(__FILE__), '..', 'fixtures', 'components') }
let (:processor) { Alephant::Publisher::Request::Processor.new(base_path) }
- let (:connection) { instance_double(Faraday::Connection, :get => response) }
+ let (:driver) { instance_double(Faraday::Connection, :get => response) }
+ let (:connection) { Alephant::Publisher::Request::Connection.new driver }
let (:data_mapper_factory) { Alephant::Publisher::Request::DataMapperFactory.new(connection, base_path) }
let (:app) { subject.create(processor, data_mapper_factory, { :debug => true }) }
describe "status endpoint (/status)" do
before(:each) do