Sha256: 13c116770b114a1746a8f49829ed92babc2a31245ef301feee999442c17338e6
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lhs-15.3.3.pre.fixoptions.1 | spec/record/options_getter_spec.rb |