Sha256: a216f6877c9fda101b9789ffe3774a7d9c18cd3b49f0cd620d4012b839343597

Contents?: true

Size: 434 Bytes

Versions: 7

Compression:

Stored size: 434 Bytes

Contents

require 'spec_helper'

require 'rom/memory'

describe ROM::Memory::Commands::Delete do
  include_context 'container'
  include_context 'users and tasks'

  before do
    configuration.relation(:users) do
      def by_id(id)
        restrict(id: id)
      end
    end
    configuration.commands(:users) do
      define(:delete)
    end
  end

  subject(:command) { container.command(:users).delete }

  it_behaves_like 'a command'
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rom-2.0.2 spec/integration/memory/commands/delete_spec.rb
rom-2.0.1 spec/integration/memory/commands/delete_spec.rb
rom-2.0.0 spec/integration/memory/commands/delete_spec.rb
rom-1.0.0 spec/integration/memory/commands/delete_spec.rb
rom-1.0.0.rc1 spec/integration/memory/commands/delete_spec.rb
rom-1.0.0.beta2 spec/integration/memory/commands/delete_spec.rb
rom-1.0.0.beta1 spec/integration/memory/commands/delete_spec.rb