The project is in a healthy, maintained state
Provides go to definition and completion for FactoryBot attributes in Ruby LSP
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 0.23.0, < 0.24.0
 Project Readme

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

  • Go-to-definition for factories
  • 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.