Sha256: 81dd3778489280a97817f7af964e8e03f17eb7d4c834589465a2c5d6d54e8b4a
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 Bytes
Contents
require 'spec_helper' describe DummyJson do it_behaves_like 'general behavior of model attributes', described_class context 'when store attribute is used as an association key' do let(:dummy_association) { DummyJsonAssociation.create } let(:dummy) { described_class.create } before do dummy.dummy_json_association = dummy_association dummy.save end describe '#dummy_json_association_id' do it { expect(dummy.dummy_json_association_id.to_i).to eq(dummy_association.id) } end describe '#dummy_json_association' do it { expect(described_class.find(dummy.id).dummy_json_association).to eq(dummy_association) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_hstore_accessor-0.3.1 | spec/app/models/dummy_json_spec.rb |