Sha256: e5dad789f6f61ef1128fa08fe3b2c2b8d778cb44941a7e3b72a451cb18554604
Contents?: true
Size: 718 Bytes
Versions: 18
Compression:
Stored size: 718 Bytes
Contents
require 'spec_helper' require 'lhs' describe LHS::Item do before(:each) do class Record < LHS::Record endpoint 'http://datastore/v2/records' end end context 'requires active support when dealing with Item' do it "does not raise an error" do stub_request(:get, "http://datastore/v2/records?color=blue") .to_return( body: { items: [{ name: 'Steve' }] }.to_json ) Record.where(color: :blue).each do |record| expect(record.respond_to_missing?(:new)).to eq false expect(record.respond_to_missing?(:proxy_association)).to eq false expect(record.respond_to_missing?(:name)).to eq true end end end end
Version data entries
18 entries across 18 versions & 1 rubygems