Skip to content

Commit 0a797eb

Browse files
committed
Change FactoryGirl => FactoryBot in rails_helper
1 parent 80995ac commit 0a797eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

all.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def prompt(header: nil, description: nil, default: nil)
5757

5858
gem_group :development, :test do
5959
gem 'rspec-rails', '~> 3.5.2'
60-
gem 'factory_girl_rails', '~> 4.0'
60+
gem 'factory_bot_rails', '~> 4.0'
6161
gem 'faker', '~> 1.7' # keep here for seeds.rb
6262
gem 'swagger-diff', '~> 1.1'
6363
end
@@ -124,7 +124,7 @@ def prompt(header: nil, description: nil, default: nil)
124124
end
125125

126126
insert_into_file "spec/rails_helper.rb", :after => "RSpec.configure do |config|\n" do
127-
" config.include FactoryGirl::Syntax::Methods\n"
127+
" config.include FactoryBot::Syntax::Methods\n"
128128
end
129129

130130
gsub_file "spec/rails_helper.rb", 'config.fixture_path = "#{::Rails.root}/spec/fixtures"' do |match|

rspec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
end
3939

4040
insert_into_file "spec/rails_helper.rb", :after => "RSpec.configure do |config|\n" do
41-
" config.include FactoryGirl::Syntax::Methods\n"
41+
" config.include FactoryBot::Syntax::Methods\n"
4242
end
4343

4444
gsub_file "spec/rails_helper.rb", 'config.fixture_path = "#{::Rails.root}/spec/fixtures"' do |match|

0 commit comments

Comments
 (0)