Sha256: adc0608185fd3872a3c33f8c1794db4779b0d26b3e134e30b869ca4b2fd405a1

Contents?: true

Size: 434 Bytes

Versions: 7

Compression:

Stored size: 434 Bytes

Contents

require 'spec_helper'

require 'rom/memory'

describe ROM::Memory::Commands::Create 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(:create)
    end
  end

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

  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/create_spec.rb
rom-2.0.1 spec/integration/memory/commands/create_spec.rb
rom-2.0.0 spec/integration/memory/commands/create_spec.rb
rom-1.0.0 spec/integration/memory/commands/create_spec.rb
rom-1.0.0.rc1 spec/integration/memory/commands/create_spec.rb
rom-1.0.0.beta2 spec/integration/memory/commands/create_spec.rb
rom-1.0.0.beta1 spec/integration/memory/commands/create_spec.rb