solargraph icon indicating copy to clipboard operation
solargraph copied to clipboard

RSPEC support

Open reeganviljoen opened this issue 1 year ago • 4 comments

I know their is support for Rails with solargraph through the solargraph-rails plugin , is their a solargraph-rspec plugin or built in support I can use for rspec

reeganviljoen avatar Sep 08 '23 08:09 reeganviljoen

There's an RSpec convention that currently ships with Solargraph, but it's far from complete. It's definitely a good candidate to become a separate extension.

castwide avatar Nov 06 '23 02:11 castwide

@castwide how would that candidacy process work for solargraph

reeganviljoen avatar Nov 06 '23 06:11 reeganviljoen

There's no official candidacy process. When I have time to work more on RSpec support, one of my first tasks would probably be to move it to its own extension. If someone else is interested in working on it, I'd be willing to assist.

castwide avatar Dec 07 '23 19:12 castwide

Hey @reeganviljoen @castwide I've got some good news for you here! After playing around for a bit I've been able to put some work and created an extension gem for RSpec, please check it out here: https://github.com/lekemula/solargraph-rspec.

It does not support all the possible use cases (as that would be humongous knowing the magic of RSpec) but hopefully, we'll get there one day!

Luckily after some iterations it ended up not needing any patches here, although I still think some of the initial changes there would be still beneficial. @castwide WDYT? I would also appreciate any feedback on the gem itself as I'm relatively a newbie in this domain. 🙏

Please give it a try and let me know how it works for you!

Cheers!

lekemula avatar May 12 '24 15:05 lekemula