spec/mongomodel/concerns/associations/belongs_to_spec.rb in mongomodel-0.5.2 vs spec/mongomodel/concerns/associations/belongs_to_spec.rb in mongomodel-0.5.3

- old
+ new

@@ -85,10 +85,10 @@ define_class(:NonUser, Document) let(:non_user) { NonUser.create! } it "raises a AssociationTypeMismatch exception" do - lambda { subject.user = non_user }.should raise_error(AssociationTypeMismatch, "expected instance of User but got NonUser") + lambda { subject.user = non_user }.should raise_error(AssociationTypeMismatch, "User expected, got NonUser") end end describe "#build_user" do let(:user) { subject.build_user(:id => '123') }