Skip to content

Commit

Permalink
Merge pull request #1829 from 18F/mb-update-factory-bot
Browse files Browse the repository at this point in the history
Update to renamed factory_bot_rails gem
  • Loading branch information
monfresh authored Dec 1, 2017
2 parents 8de8e97 + b25f6f6 commit e628d2e
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ group :test do
gem 'coffee-script'
gem 'database_cleaner'
gem 'email_spec'
gem 'factory_girl_rails'
gem 'factory_bot_rails'
gem 'fakefs', require: 'fakefs/safe'
gem 'faker'
gem 'poltergeist'
Expand Down
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@ GEM
activesupport (>= 4.0, < 6)
excon (0.58.0)
execjs (2.7.0)
factory_girl (4.8.0)
factory_bot (4.8.2)
activesupport (>= 3.0.0)
factory_girl_rails (4.8.0)
factory_girl (~> 4.8.0)
factory_bot_rails (4.8.2)
factory_bot (~> 4.8.2)
railties (>= 3.0.0)
fakefs (0.11.2)
faker (1.8.4)
Expand Down Expand Up @@ -696,7 +696,7 @@ DEPENDENCIES
email_spec
equifax!
exception_notification
factory_girl_rails
factory_bot_rails
fakefs
faker
fasterer
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/app_settings.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :app_setting do
name 'MySettingName'
value 'MySettingValue'
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/authorizations.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :authorization do
provider 'saml'
uid '1234'
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/events.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :event do
user_id 1
event_type :account_created
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/identities.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :identity do
uuid { SecureRandom.uuid }
service_provider 'https://serviceprovider.com'
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/otp_presenter.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :generic_otp_presenter, class: Hash do
otp_delivery_preference 'sms'
phone_number '***-***-1212'
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/profiles.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :profile do
association :user, factory: %i[user signed_up]
transient do
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/service_providers.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
Faker::Config.locale = :en

factory :service_provider do
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
Faker::Config.locale = :en

factory :user do
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/usps_confirmation_codes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
Faker::Config.locale = :en

factory :usps_confirmation_code do
Expand Down
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require File.expand_path('../../config/environment', __FILE__)
require 'rspec/rails'
require 'email_spec'
require 'factory_girl'
require 'factory_bot'
require 'sidekiq/testing'

# Checks for pending migrations before tests are run.
Expand Down
2 changes: 1 addition & 1 deletion spec/support/factory_girl.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
RSpec.configure do |config|
config.include FactoryGirl::Syntax::Methods
config.include FactoryBot::Syntax::Methods
end

0 comments on commit e628d2e

Please sign in to comment.