Sha256: e3d85f04ae93c616b89b5cd5eab2fcd6eb481869cd2a14765aec26ca57d26667

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe 'Setting up environment' do
  let(:env) do
    ROM::Environment.setup(memory: 'memory://test') do
      schema do
        base_relation :users do
          repository :memory

          attribute :id,   Integer
          attribute :name, String

          key :id
        end
      end
    end
  end

  it 'registers relations within repositories' do
    expect(env.schema[:users]).to be_instance_of(Axiom::Relation::Variable::Materialized)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-0.2.0 spec/integration/environment_setup_spec.rb