ruby-lsp-rspec icon indicating copy to clipboard operation
ruby-lsp-rspec copied to clipboard

Multi-line context blocks not executed correctly.

Open TTiger opened this issue 5 months ago • 0 comments

Unsure if this is an issue with the codeLens parsing/displaying or RSpec itself. It looks like RSpec wants the line number to be the one that has the corresponding do.

Executing RSpec with fileName:3 will filter out all of the examples. Executing RSpec with fileName:5 will behave as expected.

3:  describe MyClass,
4:         tag1: :team,
5:         tag2: :unit do
6:   describe "#foo" do
7:    subject { described_class.foo }

The codeLens will attempt to execute fileName:3

TTiger avatar Jul 01 '25 15:07 TTiger