Sha256: fc243a149ce7031d76bc87856b8b648a196bba54bf436041885893e54b7995d2

Contents?: true

Size: 275 Bytes

Versions: 1

Compression:

Stored size: 275 Bytes

Contents

require "spec_helper"

describe Mongoid::Cloneable do
  let(:cloneable) { Person.new }
  let(:cloner) { double(Mongoid::Cloneable::DocumentCloner) }

  it "clones the document" do
    expect(Mongoid::Cloneable::DocumentCloner).to receive(:new)

    cloneable.clone
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid_cloneable-0.0.1 spec/lib/mongoid_cloneable_spec.rb