spec/mongomodel/concerns/activemodel_spec.rb in mongomodel-0.1.3 vs spec/mongomodel/concerns/activemodel_spec.rb in mongomodel-0.1.4

- old
+ new

@@ -52,10 +52,10 @@ end end describe "#model_name" do it "should return an ActiveModel::Name object" do - TestModel.model_name.should == ActiveModel::Name.new('TestModel') + TestModel.model_name.should == ActiveModel::Name.new(mock('TestModel class', :name => 'TestModel')) end end end end