Sha256: ddb0ad65d60f20683ced31690feb57bb2be064f50c00e52a738b89430f59b6cc
Contents?: true
Size: 630 Bytes
Versions: 27
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require "spec_helper" describe Mongoid::Association::Embedded::EmbeddedIn::Buildable do describe "#build" do let(:base) do double end let(:options) do { } end let(:association) do Mongoid::Association::Embedded::EmbeddedIn.new(Person, :addresses, options) end context "when a document is provided" do let(:object) do double end let(:document) do association.build(base, object) end it "returns the document" do expect(document).to eq(object) end end end end
Version data entries
27 entries across 27 versions & 2 rubygems