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