spec/legacy/adapter_spec.rb in dm-mongo-adapter-0.2.0.pre3 vs spec/legacy/adapter_spec.rb in dm-mongo-adapter-0.6.0

- old
+ new

@@ -7,11 +7,11 @@ $db.drop_collection('heffalumps') class ::Heffalump include DataMapper::Mongo::Resource - property :id, ObjectID + property :id, ObjectId property :color, String property :num_spots, Integer property :striped, Boolean end end @@ -111,13 +111,13 @@ describe "embedded objects as properties" do before :all do class ::Zoo include DataMapper::Mongo::Resource - property :id, ObjectID - property :animals, EmbeddedArray - property :address, EmbeddedHash + property :id, ObjectId + property :animals, Array + property :address, Hash end end describe "using arrays" do it "should save a resource" do @@ -132,11 +132,14 @@ it "should be able to search with 'equal to' criterium" do penguins = [:skipper, :kowalski, :private, :rico] Zoo.create(:animals => penguins) zoo = Zoo.first(:animals => penguins) - zoo.should_not be_nil - zoo.animals.should eql(penguins) + + pending "this is currently not supported by dm-core" do + zoo.should_not be_nil + zoo.animals.should eql(penguins) + end end end describe "using hashes" do it "should save a resource" do