Sha256: 7b7877d2dae8b99b75f2d392674343ed4d671b8c7ce5a502ac0cc35270e43266

Contents?: true

Size: 569 Bytes

Versions: 8

Compression:

Stored size: 569 Bytes

Contents

RSpec.shared_context 'setup' do
  let(:configuration) do
    ROM::Configuration.new(
      :http,
      uri: uri,
      request_handler: request_handler,
      response_handler: response_handler,
      headers: headers
    )
  end
  let(:container) { ROM.container(configuration) }
  let(:rom) { container }
  let(:gateway) { container.gateways.fetch(:default) }
  let(:uri) { 'http://localhost:3000' }
  let(:request_handler) { double(Proc, freeze: self) }
  let(:response_handler) { double(Proc, freeze: self) }
  let(:headers) { { accept: 'application/json' } }
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rom-http-0.7.0 spec/shared/setup.rb
rom-http-0.6.0 spec/shared/setup.rb
rom-http-0.6.0.rc1 spec/shared/setup.rb
rom-http-0.5.0 spec/shared/setup.rb
rom-http-0.4.0 spec/shared/setup.rb
rom-http-0.3.0 spec/shared/setup.rb
rom-http-0.2.0 spec/shared/setup.rb
rom-http-0.2.0.beta1 spec/shared/setup.rb