Back to directory

Solargraph::Rspec

A Solargraph plugin that adds RSpec-aware code completion, jump-to-definition and type inference for Ruby projects, covering RSpec's describe/it blocks, memoized let helpers, custom matchers and several popular RSpec extensions.

Solargraph::Rspec

Solargraph::Rspec extends the Solargraph language server with support for RSpec's dynamic, metaprogramming-heavy syntax, which Solargraph cannot infer on its own. It supports describe and it blocks, memoized let/let! helpers, described_class with correct type inference, implicit and explicit subject, and one-liner syntax such as is_expected.

It also recognizes core and third-party spec helpers and matchers, including rspec-mocks, rspec-rails, webmock, shoulda-matchers, rspec-sidekiq and airborne, and supports custom DSL extensions through configuration. Installation is a gem added alongside Solargraph and registered as a plugin in a project's .solargraph.yml.

The project recommends excluding the spec/**/* directory from Solargraph's pre-indexing to avoid performance issues; specs are still parsed on demand when opened in the editor. It also documents generating YARD documentation for installed gems so their methods appear in completions.

More in Editors

See all 109
  • QBasic Web Editor

    vahidyousefzadeh.com

    A browser-based QBasic 1.1 editor and interpreter that runs classic QBasic programs with DOSBox-accurate behavior, including text-mode graphics commands such as PRINT, COLOR and LOCATE, with sample programs and keyboard shortcuts to run and save.

  • Aliot SysML v2

    github.com

    A VS Code extension for editing SysML v2 and KerML systems-engineering models as text and diagrams, with validation, diagram views and CI-friendly automation.

  • Tycode

    tycode.dev

    An AI coding assistant that runs as both a command-line tool and a Visual Studio Code extension, using a bring-your-own-key model where the developer pays their configured AI provider - AWS Bedrock or OpenRouter - directly instead of a subscription.