Sha256: 60f370d2fc2684bc9f6cc3dba211b853fc022daed3c61a22360f778b22fb3088

Contents?: true

Size: 313 Bytes

Versions: 5

Compression:

Stored size: 313 Bytes

Contents

RSpec.shared_context 'users' do
  include_context 'setup'

  before do
    conf.relation(:users) do
      schema(:users) do
        attribute :id, ROM::Types::Int
        attribute :name, ROM::Types::String

        primary_key :id
      end
    end
  end

  after do
    gateway[:users].refresh.delete
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rom-elasticsearch-0.3.0 spec/shared/unit/users.rb
rom-elasticsearch-0.2.1 spec/shared/unit/users.rb
rom-elasticsearch-0.2.0 spec/shared/unit/users.rb
rom-elasticsearch-0.1.1 spec/shared/unit/users.rb
rom-elasticsearch-0.1.0 spec/shared/unit/users.rb