Sha256: 1b234caff88010c778c4e0a1ae774993c5e5df09a3daa226dd87c3d677e844b0
Contents?: true
Size: 338 Bytes
Versions: 2
Compression:
Stored size: 338 Bytes
Contents
require 'spec_helper' describe 'User model mapping' do let(:rom) { Rails.application.config.rom.env } let(:users) { rom.read(:users) } before do rom.command(:users).create.call(name: 'Piotr') end it 'works' do piotr = User.new(id: 1, name: 'Piotr') expect(users.by_name('Piotr').to_a).to eql([piotr]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rom-rails-0.2.0 | spec/dummy/spec/integration/user_model_mapping_spec.rb |
rom-rails-0.1.0 | spec/dummy/spec/integration/user_model_mapping_spec.rb |