Sha256: d4c1a858a671bfd7df701b2307cab2b99157a4824c4fce728b800d001bc20ec4
Contents?: true
Size: 725 Bytes
Versions: 1
Compression:
Stored size: 725 Bytes
Contents
require 'spec_helper' require 'unit/resource/builder/shared_example_for_association' describe Resource::Embeddable::Builder do before do class Example < Transcriber::Resource embeds_one :contract, some_option: 'contract options' embeds_many :invoice_items, some_option: 'invoice options' end end describe ".embeds_one" do let(:field) {:contract} let(:many) {false} let(:options) {{some_option: 'contract options', many: many}} it_behaves_like "an association" end describe ".embeds_many" do let(:field) {:invoice_items} let(:many) {true} let(:options) {{some_option: 'invoice options', many: many}} it_behaves_like "an association" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
transcriber-0.0.26 | spec/unit/resource/builder/embeddables_spec.rb |