Sha256: 057a046931b88356dbfbba23b0ee66b071c57a4e3bcb30abd94bef2ccbce21ed

Contents?: true

Size: 333 Bytes

Versions: 17

Compression:

Stored size: 333 Bytes

Contents

require 'spec_helper'

describe 'User commands' do
  subject(:users) { rom.command(:users) }

  describe 'delete' do
    it 'deletes record' do
      rom.relations.users.insert(name: 'Piotr', email: 'piotr@test.com')
      result = users.try { users.delete.by_name('Piotr') }

      expect(result.error).to be(nil)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rom-rails-0.9.0 spec/integration/user_commands_spec.rb
rom-rails-0.9.0.beta1 spec/integration/user_commands_spec.rb
rom-rails-0.8.0 spec/integration/user_commands_spec.rb
rom-rails-0.7.0 spec/integration/user_commands_spec.rb
rom-rails-0.6.0 spec/integration/user_commands_spec.rb
rom-rails-0.6.0.rc1 spec/integration/user_commands_spec.rb
rom-rails-0.6.0.beta1 spec/integration/user_commands_spec.rb
rom-rails-0.5.0 spec/integration/user_commands_spec.rb
rom-rails-0.5.0.rc1 spec/integration/user_commands_spec.rb
rom-rails-0.5.0.beta1 spec/integration/user_commands_spec.rb
rom-rails-0.4.0 spec/integration/user_commands_spec.rb
rom-rails-0.3.3 spec/dummy/spec/integration/user_commands_spec.rb
rom-rails-0.3.2 spec/dummy/spec/integration/user_commands_spec.rb
rom-rails-0.3.1 spec/dummy/spec/integration/user_commands_spec.rb
rom-rails-0.3.0 spec/dummy/spec/integration/user_commands_spec.rb
rom-rails-0.3.0.rc1 spec/dummy/spec/integration/user_commands_spec.rb
rom-rails-0.3.0.beta1 spec/dummy/spec/integration/user_commands_spec.rb