Skip to content

Commit

Permalink
Fix spec: Lua 5.1 has different syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeterv committed May 6, 2017
1 parent 2b2efc0 commit f2de84e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/cli_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1351,8 +1351,8 @@ Total: 0 warnings / 0 errors in 1 file
end)

it("detects errors in global path config", function()
assert.equal([[
Critical error: Couldn't load configuration from spec/configs/bad_config.luacheckrc: syntax error (line 2: syntax error near 'method_missing')
assert.matches([[
Critical error: Couldn't load configuration from spec/configs/bad_config.luacheckrc: syntax error %(line 2: .* near 'method_missing'%)
]], get_output "spec/samples/compat.lua --default-config=spec/configs/bad_config.luacheckrc")
end)

Expand Down

0 comments on commit f2de84e

Please sign in to comment.