Sha256: 69e4a11e1527116b2aefa975776c6101eaec296892b9f94d7237474b3ed8ad48
Contents?: true
Size: 461 Bytes
Versions: 19
Compression:
Stored size: 461 Bytes
Contents
require 'rails_helper' describe LHS::Item do context 'accessors' do before do class Record < LHS::Record endpoint 'http://datastore/records' end end it 'accesses camel case keys using underscore syntax' do stub_request(:get, "http://datastore/records?id=1") .to_return(body: { 'AttributeValue' => 42 }.to_json) record = Record.find(1) expect(record.attribute_value).not_to be nil end end end
Version data entries
19 entries across 19 versions & 1 rubygems