def test_create
basic_authorization create(:user, :data_public => false).email, "test"
# Create the first user's changeset
def test_create
basic_authorization create(:user, :data_public => false).email, "test"
# Create the first user's changeset
"</changeset></osm>"
put :create
assert_require_public_data
basic_authorization create(:user).email, "test"
# Create the first user's changeset
"</changeset></osm>"
put :create
assert_require_public_data
basic_authorization create(:user).email, "test"
# Create the first user's changeset
basic_authorization user.email, "test"
# simple diff to create a node way and relation using placeholders
basic_authorization user.email, "test"
# simple diff to create a node way and relation using placeholders
basic_authorization create(:user).email, "test"
# create a temporary changeset
basic_authorization create(:user).email, "test"
# create a temporary changeset
# upload some widely-spaced nodes, spiralling positive and negative to cause
# largest bbox over-expansion possible.
# upload some widely-spaced nodes, spiralling positive and negative to cause
# largest bbox over-expansion possible.
# upload it, which used to cause an error like "PGError: ERROR:
# integer out of range" (bug #2152). but shouldn't any more.
# upload it, which used to cause an error like "PGError: ERROR:
# integer out of range" (bug #2152). but shouldn't any more.
basic_authorization changeset.user.email, "test"
# simple diff to create a node way and relation using placeholders
basic_authorization changeset.user.email, "test"
# simple diff to create a node way and relation using placeholders
basic_authorization changeset.user.email, "test"
# simple diff to create a node way and relation using placeholders
basic_authorization changeset.user.email, "test"
# simple diff to create a node way and relation using placeholders
basic_authorization changeset.user.email, "test"
# simple diff to create a node way and relation using placeholders
basic_authorization changeset.user.email, "test"
# simple diff to create a node way and relation using placeholders
# change the location of a node multiple times, each time referencing
# the last version. doesn't this depend on version numbers being
# sequential?
# change the location of a node multiple times, each time referencing
# the last version. doesn't this depend on version numbers being
# sequential?
<osmChange>
<modify>
<node id='#{node.id}' lon='0' lat='0' changeset='#{changeset.id}' version='1'/>
<node id='#{node.id}' lon='1' lat='1' changeset='#{changeset.id}' version='1'/>
</modify>
</osmChange>
<osmChange>
<modify>
<node id='#{node.id}' lon='0' lat='0' changeset='#{changeset.id}' version='1'/>
<node id='#{node.id}' lon='1' lat='1' changeset='#{changeset.id}' version='1'/>
</modify>
</osmChange>
content diff
post :upload, :params => { :id => changeset.id }
assert_response :bad_request, "Shouldn't be able to upload a diff with the action ping"
content diff
post :upload, :params => { :id => changeset.id }
assert_response :bad_request, "Shouldn't be able to upload a diff with the action ping"
assert_equal "Placeholder node not found for reference -4 in way -1", @response.body
# the same again, but this time use an existing way
assert_equal "Placeholder node not found for reference -4 in way -1", @response.body
# the same again, but this time use an existing way
assert_equal "Placeholder Node not found for reference -4 in relation -1.", @response.body
# the same again, but this time use an existing relation
assert_equal "Placeholder Node not found for reference -4 in relation -1.", @response.body
# the same again, but this time use an existing relation
def test_upload_node_move
basic_authorization create(:user).email, "test"
def test_upload_node_move
basic_authorization create(:user).email, "test"
def test_upload_way_extend
basic_authorization create(:user).email, "test"
def test_upload_way_extend
basic_authorization create(:user).email, "test"
basic_authorization create(:user, :data_public => false).email, "test"
# create a temporary changeset
basic_authorization create(:user, :data_public => false).email, "test"
# create a temporary changeset
basic_authorization create(:user).email, "test"
# create a temporary changeset
basic_authorization create(:user).email, "test"
# create a temporary changeset
basic_authorization create(:user).email, "test"
# create a temporary changeset
basic_authorization create(:user).email, "test"
# create a temporary changeset
basic_authorization create(:user).email, "test"
# create a temporary changeset
basic_authorization create(:user).email, "test"
# create a temporary changeset
# check that the changeset is now closed as well
assert(!changeset.is_open?,
# check that the changeset is now closed as well
assert(!changeset.is_open?,