Skip to content

Commit

Permalink
Add factory_bot_rails
Browse files Browse the repository at this point in the history
  • Loading branch information
zakariaf committed Dec 26, 2021
1 parent 98b9719 commit 6345a47
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ group :test do
gem "capybara"
gem "selenium-webdriver"
gem "webdrivers"
gem 'factory_bot_rails'
end
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ GEM
reline (>= 0.2.7)
diff-lcs (1.5.0)
erubi (1.10.0)
factory_bot (6.2.0)
activesupport (>= 5.0.0)
factory_bot_rails (6.2.0)
factory_bot (~> 6.2.0)
railties (>= 5.0.0)
globalid (1.0.0)
activesupport (>= 5.0)
i18n (1.8.11)
Expand Down Expand Up @@ -212,6 +217,7 @@ DEPENDENCIES
bootsnap
capybara
debug
factory_bot_rails
importmap-rails
jbuilder
pg (~> 1.1)
Expand Down
Empty file added spec/factories/.keep
Empty file.
3 changes: 3 additions & 0 deletions spec/support/factory_bot.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RSpec.configure do |config|
config.include FactoryBot::Syntax::Methods
end

0 comments on commit 6345a47

Please sign in to comment.