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>" +
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"
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