olimorris / neotest-rspec

🧪 Neotest adapter for RSpec. Works in Docker containers too
MIT License
90 stars 26 forks source link

Can't run tests that use class methods #16

Closed olimorris closed 2 years ago

olimorris commented 2 years ago

Ref: #15. The following code will not currently run:

RSpec.describe Class do
  describe '.new' do
    it 'handles the "." method naming convention' do
      expect(Class.new).to be_a(Class)
    end
  end
end

The RSpec full_description id is: Class.new handles the "." method naming convention

and the Treesitter ID is Class .new handles the "." method naming convention

The space in the Treesitter ID is causing the issue so need to find a neat way to resolve it.

olimorris commented 2 years ago

Update: Working on solving this with https://github.com/olimorris/neotest-rspec/tree/rspec-formatter