Skip to content

Commit

Permalink
Rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
igillis committed Apr 29, 2024
1 parent 5b10e25 commit ba7847c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/neotest-minitest/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function NeotestAdapter.discover_positions(file_path)
(constant) @namespace.name
(scope_resolution scope: (constant) name: (constant) @namespace.name)
]
(superclass (scope_resolution) @superclass (#match? @superclass "(::IntegrationTest|::TestCase)$"))
(superclass (scope_resolution) @superclass (#match? @superclass "(::IntegrationTest|::TestCase|::SystemTestCase)$"))
)) @namespace.definition
((
Expand Down
3 changes: 2 additions & 1 deletion tests/adapter/rails_module_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local plugin = require("neotest-minitest")
local async = require("nio.tests")

describe("Rails Module Test", function()
assert:set_parameter("TableFormatLevel", -1)
describe("discover_positions", function()
async.it("should discover the position for the tests", function()
local test_path = vim.loop.cwd() .. "/tests/minitest_examples/rails_module_test.rb"
Expand Down Expand Up @@ -101,7 +102,7 @@ Expected: 2
local results = plugin._parse_test_output(output, { ["UserInfoControllerTest#test_throwaway"] = "testing" })

assert.are.same({
["testing"] = { status = "failed", errors = { { message = "Expected: 2\n Actual: 4", line = 21 } } },
["testing"] = { status = "failed", errors = { { message = "Expected: 2\n Actual: 4", line = 20 } } },
}, results)
end)
end)
Expand Down

0 comments on commit ba7847c

Please sign in to comment.