Sha256: c3ec76dc43607e598c8c1ebbce81aedb1928da25bef1b0ff4a9610349d5a8c89
Contents?: true
Size: 422 Bytes
Versions: 23
Compression:
Stored size: 422 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "/../../../../spec_helper.rb")) 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
23 entries across 23 versions & 1 rubygems