Sha256: 21ca77547f0aead0c0878f004ebe6f3c2b6ec3bc888464df1fbd780c3e2668dc
Contents?: true
Size: 372 Bytes
Versions: 20
Compression:
Stored size: 372 Bytes
Contents
require File.join(File.dirname(__FILE__), "/../../../../spec_helper.rb") describe Mongoid::Extensions::Array::Conversions do describe "#mongoidize" do it "collects each of its attributes" do array = [Person.new(:title => "Sir"), Person.new(:title => "Madam")] array.mongoidize.should == [{ :title => "Sir" }, { :title => "Madam" }] end end end
Version data entries
20 entries across 20 versions & 2 rubygems