Sha256: 2ebd8623e5ca2c90b00a4d0c6ace362f9e4fa1e942c7cb0f0b94fbdb469eadc6

Contents?: true

Size: 436 Bytes

Versions: 4

Compression:

Stored size: 436 Bytes

Contents

RSpec.describe 'ROM initializer' do
  it 'allows setting up a custom gateway' do
    gateway = ROM::TestAdapter::Gateway.new(foo: :bar)
    relation = DummyRelation.new([])

    expect(rom.gateways[:default]).to eql(gateway)
    expect(rom.relations.dummy).to eql(relation)
  end

  it 'loads commands from additionall auto_registration_paths' do
    expect(rom.commands.tasks.create_additional).to be_a(CreateAdditionalTask)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rom-rails-2.3.0 spec/integration/initializer_spec.rb
rom-rails-2.2.0 spec/integration/initializer_spec.rb
rom-rails-2.0.0 spec/integration/initializer_spec.rb
rom-rails-1.2.0 spec/integration/initializer_spec.rb