Sha256: 9f088ae9c34a039e12efe3c7e27054d13f4989d8aad3db713eb891837efb572b
Contents?: true
Size: 353 Bytes
Versions: 59
Compression:
Stored size: 353 Bytes
Contents
require "spec_helper" describe Mongoid::Extensions::Array::Parentization do describe "#parentize" do before do @parent = stub @child = mock @array = [@child] end it "sets the parent on each element" do @child.expects(:parentize).with(@parent, :child) @array.parentize(@parent, :child) end end end
Version data entries
59 entries across 59 versions & 3 rubygems