mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
DEV: Enable unless
cops
We discussed the use of `unless` internally and decided to enforce available rules from rubocop to restrict its most problematic uses.
This commit is contained in:

committed by
Loïc Guitaut

parent
87de3c2319
commit
f7c57fbc19
@ -9,7 +9,7 @@ RSpec::Matchers.define :match_response_schema do |schema|
|
||||
JSON::Validator.validate!(schema_path, object, strict: true)
|
||||
rescue JSON::Schema::ValidationError => e
|
||||
puts "-- Printing response body after validation error\n"
|
||||
pp object
|
||||
pp object # rubocop:disable Lint/Debugger
|
||||
raise e
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user