Fix new rubocop warnings
This commit is contained in:
parent
91ba6ae647
commit
e15a92a302
2 changed files with 3 additions and 3 deletions
|
@ -32,11 +32,11 @@ module ShortLink
|
|||
else
|
||||
3.times do
|
||||
x <<= 1
|
||||
x |= 1 unless (t & 32).zero?
|
||||
x |= 1 unless t.nobits?(32)
|
||||
t <<= 1
|
||||
|
||||
y <<= 1
|
||||
y |= 1 unless (t & 32).zero?
|
||||
y |= 1 unless t.nobits?(32)
|
||||
t <<= 1
|
||||
end
|
||||
z += 3
|
||||
|
|
|
@ -1066,7 +1066,7 @@ module Api
|
|||
|
||||
# create a new changeset for this operation, so we are assured
|
||||
# that the bounding box will be newly-generated.
|
||||
changeset_id = with_controller(Api::ChangesetsController.new) do
|
||||
with_controller(Api::ChangesetsController.new) do
|
||||
xml = "<osm><changeset/></osm>"
|
||||
put changeset_create_path, :params => xml, :headers => auth_header
|
||||
assert_response :forbidden, "shouldn't be able to create changeset for modify test, as should get forbidden"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue