Skip to content

Commit

Permalink
Merge pull request #16 from deepakmahakale/factory-bot-rename
Browse files Browse the repository at this point in the history
Rename factory_girl to factory_bot
  • Loading branch information
deepakmahakale committed May 16, 2018
2 parents 61e322a + 39fcfa3 commit e48e06a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/factories/purchase_orders.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
sequence :user_authentication_token do |n|
"xxxx#{Time.current.to_i}#{rand(1000)}#{n}xxxxxxxxxxxxx"
end
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'factory_girl_rails'
require 'factory_bot_rails'

Rails.backtrace_cleaner.remove_silencers!

Expand All @@ -16,5 +16,5 @@
config.infer_base_class_for_anonymous_controllers = false
config.order = "random"

config.include FactoryGirl::Syntax::Methods
config.include FactoryBot::Syntax::Methods
end
2 changes: 1 addition & 1 deletion spree_purchase_order.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ Gem::Specification.new do |s|

s.add_development_dependency 'sqlite3'
s.add_development_dependency 'rspec-rails'
s.add_development_dependency 'factory_girl_rails'
s.add_development_dependency 'factory_bot_rails'
end

0 comments on commit e48e06a

Please sign in to comment.