]> git.openstreetmap.org Git - rails.git/blobdiff - test/unit/node_test.rb
Adding test to check that users can't update changesets that they don't own.
[rails.git] / test / unit / node_test.rb
index 2c6515cb7db019344d8d0a525e22f1b11f30f689..a2c8d7fb66379aa445cb4e3410fc4e9c44309d23 100644 (file)
@@ -79,7 +79,7 @@ class NodeTest < Test::Unit::TestCase
   def test_create
     node_template = Node.new(:latitude => 12.3456,
                              :longitude => 65.4321,
-                             :changeset_id => changesets(:normal_user_first_change),
+                             :changeset_id => changesets(:normal_user_first_change).id,
                              :visible => 1, 
                              :version => 1)
     assert node_template.save_with_history!