Sha256: ab150061e438fac41b463cb20ea6b1e466a229460de77921fe6273bd36a38ce8

Contents?: true

Size: 389 Bytes

Versions: 25

Compression:

Stored size: 389 Bytes

Contents

require 'rom/memory'

RSpec.shared_context 'no container' do
  let(:gateway) { ROM::Memory::Gateway.new }

  let(:users_dataset) { gateway.dataset(:users) }
  let(:tasks_dataset) { gateway.dataset(:tasks) }

  let(:users_relation) do
    Class.new(ROM::Memory::Relation).new(users_dataset)
  end

  let(:tasks_relation) do
    Class.new(ROM::Memory::Relation).new(tasks_dataset)
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rom-3.3.3 spec/shared/no_container.rb
rom-3.3.2 spec/shared/no_container.rb
rom-3.3.1 spec/shared/no_container.rb
rom-3.3.0 spec/shared/no_container.rb
rom-3.2.3 spec/shared/no_container.rb
rom-3.2.2 spec/shared/no_container.rb
rom-3.2.1 spec/shared/no_container.rb
rom-3.2.0 spec/shared/no_container.rb
rom-3.1.0 spec/shared/no_container.rb
rom-3.0.3 spec/shared/no_container.rb
rom-3.0.2 spec/shared/no_container.rb
rom-3.0.1 spec/shared/no_container.rb
rom-3.0.0 spec/shared/no_container.rb
rom-3.0.0.rc2 spec/shared/no_container.rb
rom-3.0.0.rc1 spec/shared/no_container.rb
rom-3.0.0.beta3 spec/shared/no_container.rb
rom-3.0.0.beta2 spec/shared/no_container.rb
rom-3.0.0.beta1 spec/shared/no_container.rb
rom-2.0.2 spec/shared/no_container.rb
rom-2.0.1 spec/shared/no_container.rb