Sha256: 58f97aa77ba117e6f39ac16cb82068217a520c809330939bf02b137a3af60b61
Contents?: true
Size: 540 Bytes
Versions: 3
Compression:
Stored size: 540 Bytes
Contents
require "spec_helper" describe Mongoid::Relations::Builders::Embedded::In do describe "#build" do let(:object) do stub end let(:base) do stub end let(:metadata) do stub(klass: Person, name: :person) end context "when a document is provided" do let(:builder) do described_class.new(base, metadata, object) end let(:document) do builder.build end it "returns the document" do document.should eq(object) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems