Sha256: b4b4336826a9ce2ad1fb3b32f45158b13d1623a354bd697da5e479b0c6a37dc0
Contents?: true
Size: 510 Bytes
Versions: 76
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' describe LHS::Record do context 'options' do before do class Record < LHS::Record endpoint 'http://local.ch/records' end end let(:raw) do { options: { criticality: :high } } end def record LHS::Record.new LHS::Data.new(raw, nil, Record) end it 'is possible to fetch data from a key called options from an instance' do expect(record.options.criticality).to eq :high end end end
Version data entries
76 entries across 76 versions & 1 rubygems