Sha256: 0de3898d45d3a4aa400dcef80767b613a49439aacf2025b4a99703791a442b13
Contents?: true
Size: 522 Bytes
Versions: 54
Compression:
Stored size: 522 Bytes
Contents
require "spec_helper" describe Mongoid::Relations::Cascading::Nullify do let(:person) do Person.new end describe "#cascade" do let(:relation) do double end let(:metadata) do double(name: :posts) end let(:strategy) do described_class.new(person, metadata) end before do expect(person).to receive(:posts).and_return(relation) end it "nullifies the relation" do expect(relation).to receive(:nullify) strategy.cascade end end end
Version data entries
54 entries across 49 versions & 3 rubygems