super
Settings.id_key = create(:client_application).key
- Settings.potlatch2_key = create(:client_application).key
end
##
# clear oauth keys
def teardown
Settings.id_key = nil
- Settings.potlatch2_key = nil
end
##
assert_response :success
assert_template "edit"
- assert_equal 1.0, assigns(:lat)
- assert_equal 1.0, assigns(:lon)
+ assert_in_delta(1.0, assigns(:lat))
+ assert_in_delta(1.0, assigns(:lon))
assert_equal 18, assigns(:zoom)
end
get edit_path(:way => way.id)
assert_response :success
assert_template "edit"
- assert_equal 3.0, assigns(:lat)
- assert_equal 3.0, assigns(:lon)
+ assert_in_delta(3.0, assigns(:lat))
+ assert_in_delta(3.0, assigns(:lon))
assert_equal 17, assigns(:zoom)
end
get edit_path(:note => note.id)
assert_response :success
assert_template "edit"
- assert_equal 1.0, assigns(:lat)
- assert_equal 1.0, assigns(:lon)
+ assert_in_delta(1.0, assigns(:lat))
+ assert_in_delta(1.0, assigns(:lon))
assert_equal 17, assigns(:zoom)
end
get edit_path(:gpx => gpx.id)
assert_response :success
assert_template "edit"
- assert_equal 1.0, assigns(:lat)
- assert_equal 1.0, assigns(:lon)
+ assert_in_delta(1.0, assigns(:lat))
+ assert_in_delta(1.0, assigns(:lon))
assert_equal 16, assigns(:zoom)
end