Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to renamed factory_bot_rails gem #1829

Merged
merged 1 commit into from
Dec 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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