basic_authorization users(:normal_user).email, "test"
# Create the first user's changeset
content "<osm><changeset>" +
basic_authorization users(:normal_user).email, "test"
# Create the first user's changeset
content "<osm><changeset>" +
put :create
assert_require_public_data
basic_authorization users(:public_user).email, "test"
# Create the first user's changeset
content "<osm><changeset>" +
put :create
assert_require_public_data
basic_authorization users(:public_user).email, "test"
# Create the first user's changeset
content "<osm><changeset>" +
basic_authorization users(:public_user).email, "test"
content "<osm><changeset>" +
basic_authorization users(:public_user).email, "test"
content "<osm><changeset>" +
basic_authorization users(:public_user).email, "test"
content "<osm><changeset>" +
basic_authorization users(:public_user).email, "test"
content "<osm><changeset>" +
["<osmChange/>",
"<osmChange></osmChange>",
"<osmChange><modify/></osmChange>",
["<osmChange/>",
"<osmChange></osmChange>",
"<osmChange><modify/></osmChange>",
get :query, :closed => "true"
assert_response :success, "can't get changesets by closed-ness"
get :query, :closed => "true"
assert_response :success, "can't get changesets by closed-ness"
- assert_changesets [3, 5, 6, 7, 8]
+ assert_changesets [3, 5, 6, 7, 8, 9]
get :query, :closed => "true", :user => users(:normal_user).id
assert_response :success, "can't get changesets by closed-ness and user"
get :query, :closed => "true", :user => users(:normal_user).id
assert_response :success, "can't get changesets by closed-ness and user"
get :query, :bbox => bbox
assert_response :bad_request, "'#{bbox}' isn't a bbox"
end
get :query, :bbox => bbox
assert_response :bad_request, "'#{bbox}' isn't a bbox"
end
get :query, :time => time
assert_response :bad_request, "'#{time}' isn't a valid time range"
end
get :query, :time => time
assert_response :bad_request, "'#{time}' isn't a valid time range"
end
assert changesets.size <= 20
assert_select "feed", :count => [changesets.size, 1].min do
assert changesets.size <= 20
assert_select "feed", :count => [changesets.size, 1].min do
- assert_select "entry", :count => changesets.size
+ assert_select "> title", :count => 1, :text => /^Changesets/
+ assert_select "> entry", :count => changesets.size