FactoryBot add-on

The FactoryBot add-on is a Ruby LSP add-on for extra FactoryBot editor features.

Installation

If you haven't already done so, you'll need to first set up Ruby LSP.

Add the following to your application's Gemfile:

# Gemfile
gem "ruby-lsp-factory_bot", require: false, group: :development

run bundle install and restart Ruby LSP server.

Features

  • [x] Go-to-definition for factories
  • [x] Go-to-definition for factory traits
  • [ ] Completions for factories and traits

License

The gem is available as open source under the terms of the MIT License.