# Check that you can create a node and store it
def test_create
+ changeset = create(:changeset)
node_template = Node.new(
:latitude => 12.3456,
:longitude => 65.4321,
- :changeset_id => changesets(:normal_user_first_change).id,
+ :changeset_id => changeset.id,
:visible => 1,
:version => 1
)
- assert node_template.create_with_history(changesets(:normal_user_first_change).user)
+ assert node_template.create_with_history(changeset.user)
node = Node.find(node_template.id)
assert_not_nil node