Skip to content

Commit

Permalink
Fix: uninitialized constant FactoryBot::Syntax on Heroku (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
newstler authored Apr 18, 2023
1 parent 23e1082 commit 53235ee
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ group :development, :test do

# A gem for generating test coverage results in your browser.
gem "simplecov", require: false

# Generate test objects.
gem "factory_bot_rails"
end

group :development do
Expand Down Expand Up @@ -140,9 +143,6 @@ group :test do
# Interact with emails during testing.
gem "capybara-email"

# Generate test objects.
gem "factory_bot_rails", group: :development

# Write system tests by pointing and clicking in your browser.
gem "magic_test"

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -656,4 +656,4 @@ RUBY VERSION
ruby 3.2.1p31

BUNDLED WITH
2.4.8
2.4.10
7 changes: 0 additions & 7 deletions config/initializers/factory_girl.rb

This file was deleted.

4 changes: 4 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@

# Add more helper methods to be used by all tests here...
end

class ActiveSupport::TestCase
include FactoryBot::Syntax::Methods
end

0 comments on commit 53235ee

Please sign in to comment.