Sha256: f3d4084c70af901064861e9e04eb7341cea7a944effa4dd8d8ae565ba16bf436

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true

require 'tataru'

describe Tataru::Instructions::KeyInstruction do
  it 'set a key' do
    mem = Tataru::Memory.new
    instr = Tataru::Instructions::KeyInstruction.new('meow')

    instr.memory = mem
    instr.run

    expect(mem.hash[:temp]).to eq(_key: 'meow')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tataru-0.2.0 spec/instructions/key_instruction_spec.rb