ways = map[2].collect { |x| x[0] }
assert ways.include?(way.id),
"map should include used way"
ways = map[2].collect { |x| x[0] }
assert ways.include?(way.id),
"map should include used way"
- assert !ways.include?(deleted_way.id),
- "map should not include deleted way"
+ assert_not ways.include?(deleted_way.id),
+ "map should not include deleted way"
assert_equal Array, map[2].class, "third map element should be an array"
# TODO: looks like amf_controller changed since this test was written
# so someone who knows what they're doing should check this!
assert_equal Array, map[2].class, "third map element should be an array"
# TODO: looks like amf_controller changed since this test was written
# so someone who knows what they're doing should check this!
- assert !map[2].include?(way.id),
- "map should not include visible way"
+ assert_not map[2].include?(way.id),
+ "map should not include visible way"
assert map[2].include?(deleted_way.id),
"map should include deleted way"
end
assert map[2].include?(deleted_way.id),
"map should include deleted way"
end
assert_equal 2, result.length
assert_equal -1, result[0]
assert_equal 2, result.length
assert_equal -1, result[0]
blocked_user = create(:user)
create(:user_block, :user => blocked_user)
blocked_user = create(:user)
create(:user_block, :user => blocked_user)
assert_equal 2, result.length
assert_equal -1, result[0]
assert_equal 2, result.length
assert_equal -1, result[0]
assert_equal 2, result.size
assert_equal -2, result[0]
assert_equal 2, result.size
assert_equal -2, result[0]
assert_equal 2, result.size
assert_equal -1, result[0]
assert_equal 2, result.size
assert_equal -1, result[0]
new_way = Way.find(way.id)
assert_equal way.version, new_way.version
new_way = Way.find(way.id)
assert_equal way.version, new_way.version
assert_equal 2, result.size
assert_equal -1, result[0]
assert_equal 2, result.size
assert_equal -1, result[0]
new_relation = Relation.find(relation.id)
assert_equal relation.version, new_relation.version
new_relation = Relation.find(relation.id)
assert_equal relation.version, new_relation.version