diff --git a/GETTING_STARTED.md b/GETTING_STARTED.md index 2348230..fc12ba9 100644 --- a/GETTING_STARTED.md +++ b/GETTING_STARTED.md @@ -30,13 +30,17 @@ Configure your test suite ### RSpec +If you're using Rails: + ```ruby -# spec/support/factory_bot.rb RSpec.configure do |config| config.include FactoryBot::Syntax::Methods end +``` -# RSpec without Rails +If you're *not* using Rails: + +```ruby RSpec.configure do |config| config.include FactoryBot::Syntax::Methods @@ -46,12 +50,6 @@ RSpec.configure do |config| end ``` -Remember to require the above file in your rails_helper since the support folder isn't eagerly loaded - -```ruby -require 'support/factory_bot' -``` - ### Test::Unit ```ruby