Sha256: aef1480e3d5218bd953d9f4812aa2f308ba9cf28abb88283917969ddfdffc314
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 Bytes
Contents
# frozen_string_literal: true require 'tataru' describe Tataru::Instructions::DeleteInstruction do it 'calls delete on the resource' do mem = Tataru::Memory.new instr = Tataru::Instructions::DeleteInstruction.new mem.hash[:temp] = { resource_name: 'thing', resource_desc: 'Tataru::BaseResourceDesc' } mem.hash[:remote_ids] = { 'thing' => 'hello' } instr.memory = mem expect_any_instance_of(Tataru::BaseResource).to receive(:delete) instr.run end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tataru-0.2.0 | spec/instructions/delete_instruction_spec.rb |