# Test editing a specific node
def test_edit_with_node
user = create(:user)
- node = current_nodes(:visible_node)
+ node = create(:node, :lat => 1.0, :lon => 1.0)
get :edit, { :node => node.id }, { :user => user }
assert_response :success
# Test editing a specific way
def test_edit_with_way
user = create(:user)
- way = current_ways(:visible_way)
+ node = create(:node, :lat => 3, :lon => 3)
+ way = create(:way)
+ create(:way_node, :node => node, :way => way)
get :edit, { :way => way.id }, { :user => user }
assert_response :success