Fixed precondition failed message which was trying to dereference nil.
[rails.git] / test / functional / relation_controller_test.rb
index e51db0b756b23e30f64a4ad611496e28b43316a9..bb562b24b96c089774d6459dae879505a1a96eb9 100644 (file)
@@ -341,7 +341,7 @@ class RelationControllerTest < ActionController::TestCase
     # expect failure
     assert_response :precondition_failed, 
         "relation upload with invalid node did not return 'precondition failed'"
-    assert_equal "Precondition failed: Cannot create relation: data or member data is invalid.", @response.body
+    assert_equal "Precondition failed: Relation with id  cannot be saved due to Node with id 0", @response.body
   end
 
   # -------------------------------------