class Rubydex::Linter::RuleTestCase

Base test case for Rubydex linter rules.

Add expected diagnostics below the source:

assert_diagnostics(<<~RUBY)
  FOO = 123
  ^^^ Failure: FOO
RUBY

The carets mark the diagnostic range. Use ‘^{}` for a zero-width range. Pass a hash to test multiple files. Repeat an annotation line for each message line. By default, FooTest tests the Foo rule.