]> git.openstreetmap.org Git - rails.git/blobdiff - test/unit/node_test.rb
Treat messages received by email as plain text
[rails.git] / test / unit / node_test.rb
index 6bfcf79262b4c6798d2615d27a7cc2d9fe7a55fe..78f060678ecdf542cd18b3ee77d23a6f2be02a11 100644 (file)
@@ -77,11 +77,13 @@ class NodeTest < ActiveSupport::TestCase
   
   # Check that you can create a node and store it
   def test_create
-    node_template = Node.new(:latitude => 12.3456,
-                             :longitude => 65.4321,
-                             :changeset_id => changesets(:normal_user_first_change).id,
-                             :visible => 1, 
-                             :version => 1)
+    node_template = Node.new({
+      :latitude => 12.3456,
+      :longitude => 65.4321,
+      :changeset_id => changesets(:normal_user_first_change).id,
+      :visible => 1, 
+      :version => 1
+    }, :without_protection => true)
     assert node_template.create_with_history(users(:normal_user))
 
     node = Node.find(node_template.id)