Sha256: 06fc8259201e359836b1dc7e664e996a86459c83b411ecf6234615fd1f538311

Contents?: true

Size: 379 Bytes

Versions: 6

Compression:

Stored size: 379 Bytes

Contents

require 'spec_helper'

require 'rom/memory'

describe ROM::Memory::Commands::Create do
  include_context 'users and tasks'

  subject(:command) { ROM::Memory::Commands::Create.build(users) }

  let(:users) { rom.relations[:users] }

  before do
    setup.relation(:users) do
      def by_id(id)
        restrict(id: id)
      end
    end
  end

  it_behaves_like 'a command'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rom-0.9.1 spec/unit/rom/memory/commands/create_spec.rb
rom-0.9.0 spec/unit/rom/memory/commands/create_spec.rb
rom-0.9.0.rc1 spec/unit/rom/memory/commands/create_spec.rb
rom-0.9.0.beta1 spec/unit/rom/memory/commands/create_spec.rb
rom-0.8.1 spec/unit/rom/memory/commands/create_spec.rb
rom-0.8.0 spec/unit/rom/memory/commands/delete_spec.rb