Read rubocop offenses as const from corresponding class in tests
This commit is contained in:
parent
b8adc1a8aa
commit
222af82401
@ -18,7 +18,7 @@ describe RuboCop::Cop::FormulaAuditStrict::BottleBlock do
|
||||
end
|
||||
EOS
|
||||
|
||||
expected_offenses = [{ message: "Use rebuild instead of revision in bottle block",
|
||||
expected_offenses = [{ message: described_class::MSG,
|
||||
severity: :convention,
|
||||
line: 5,
|
||||
column: 4,
|
||||
|
||||
@ -16,11 +16,7 @@ describe RuboCop::Cop::FormulaAudit::Conflicts do
|
||||
end
|
||||
EOS
|
||||
|
||||
msg = <<-EOS.undent
|
||||
Versioned formulae should not use `conflicts_with`.
|
||||
Use `keg_only :versioned_formula` instead.
|
||||
EOS
|
||||
expected_offenses = [{ message: msg,
|
||||
expected_offenses = [{ message: described_class::MSG,
|
||||
severity: :convention,
|
||||
line: 3,
|
||||
column: 2,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user