Sha256: e341e4eee130aedc9e6b2caaee0d5e9b9cc0a4b34cf1fce0dc5bf1b0a66e47cd

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 Bytes

Contents

require 'spec_helper'

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[:test]).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-0.9.0 spec/integration/initializer_spec.rb
rom-rails-0.9.0.beta1 spec/integration/initializer_spec.rb
rom-rails-0.8.0 spec/integration/initializer_spec.rb
rom-rails-0.7.0 spec/integration/initializer_spec.rb