Sha256: 6aaa67301b6d8ceb7e309739e5707c7941f1120796ffa818cef59fafbeb99409

Contents?: true

Size: 318 Bytes

Versions: 2

Compression:

Stored size: 318 Bytes

Contents

# encoding: utf-8

shared_context 'Session::Environment' do
  let(:object) { described_class.new({ users: users }, Session::Tracker.new) }

  let(:users) {
    relation = TEST_ENV.repository(:test)[:users]
    mapper   = Mapper.build(relation.header, mock_model(:id, :name))
    Relation.new(relation, mapper)
  }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rom-session-0.1.1 spec/shared/unit/environment_context.rb
rom-session-0.1.0 spec/shared/unit/environment_context.rb