Sha256: 328c17d58b2646b2f3fe4ed64d07250f5c1fd1ff0558e4a104c438a5a71e4a2e

Contents?: true

Size: 568 Bytes

Versions: 9

Compression:

Stored size: 568 Bytes

Contents

RSpec.shared_context 'users and tasks' do
  require 'rom/memory'

  subject(:rom) { setup.finalize }

  let(:setup) { ROM.setup(:memory) }

  before do
    repository = setup.default

    users = repository.dataset(:users)
    tasks = repository.dataset(:tasks)

    users.insert(name: "Joe", email: "joe@doe.org")
    users.insert(name: "Jane", email: "jane@doe.org")

    tasks.insert(name: "Joe", title: "be nice", priority: 1)
    tasks.insert(name: "Joe", title: "sleep well", priority: 2)

    tasks.insert(name: "Jane", title: "be cool", priority: 2)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rom-0.7.1 spec/shared/users_and_tasks.rb
rom-0.7.0 spec/shared/users_and_tasks.rb
rom-0.6.2 spec/shared/users_and_tasks.rb
rom-0.6.1 spec/shared/users_and_tasks.rb
rom-0.6.0 spec/shared/users_and_tasks.rb
rom-0.6.0.rc1 spec/shared/users_and_tasks.rb
rom-0.6.0.beta3 spec/shared/users_and_tasks.rb
rom-0.6.0.beta2 spec/shared/users_and_tasks.rb
rom-0.6.0.beta1 spec/shared/users_and_tasks.rb