Sha256: 1167955030d92faaf4fc527412db0ddac9f28f00ec97c1b55a5e23465785877c
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
# frozen_string_literal: true require 'tataru' describe Tataru::Instructions::MarkDeletableInstruction do it 'set a resource as deletable' do mem = Tataru::Memory.new instr = Tataru::Instructions::MarkDeletableInstruction.new mem.hash[:temp] = { resource_name: 'thing', resource_desc: 'Tataru::BaseResourceDesc' } mem.hash[:remote_ids] = { 'thing' => 'hello' } instr.memory = mem instr.run expect(mem.hash[:remote_ids]).to eq('_deletable_thing' => 'hello') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tataru-0.2.0 | spec/instructions/mark_deletable_instruction_spec.rb |