Closed boardfish closed 3 months ago
Given this input, for example:
expect({ a: 1 }).to eq something_else
RSpec/ExpectActual autocorrects to this:
RSpec/ExpectActual
expect(something_else).to eq { a: 1 }
This isn't interpreted correctly by Ruby, which returns:
syntax error, unexpected ':', expecting '}' (SyntaxError)
Safe output for this cop would be:
expect(something_else).to eq({ a: 1 })
Given this input, for example:
RSpec/ExpectActual
autocorrects to this:This isn't interpreted correctly by Ruby, which returns:
Safe output for this cop would be: