mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
FactoryGirl → FactoryBot
This commit is contained in:
parent
84c03ecb33
commit
cdf82df16a
2
Gemfile
2
Gemfile
@ -37,7 +37,7 @@ group :test, :development do
|
||||
end
|
||||
|
||||
group :test do
|
||||
gem 'factory_girl_rails'
|
||||
gem 'factory_bot_rails'
|
||||
gem 'shoulda'
|
||||
gem 'poltergeist'
|
||||
gem 'database_cleaner'
|
||||
|
||||
@ -118,10 +118,10 @@ GEM
|
||||
erubis (2.7.0)
|
||||
excon (0.57.1)
|
||||
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)
|
||||
ffi (1.9.21)
|
||||
fivemat (1.3.5)
|
||||
@ -345,7 +345,7 @@ DEPENDENCIES
|
||||
dotenv-rails
|
||||
dragonfly
|
||||
dragonfly-s3_data_store
|
||||
factory_girl_rails
|
||||
factory_bot_rails
|
||||
fivemat
|
||||
jquery-rails
|
||||
kaminari
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
factory :category do
|
||||
sequence(:name) { |n| "Test Category #{n}" }
|
||||
end
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
factory :contact do
|
||||
email "test@danbarberphoto.com"
|
||||
name "Dan Barber"
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
factory :page do
|
||||
name "page"
|
||||
title "Page"
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
factory :photo do
|
||||
title "A Photo"
|
||||
description "A lovely photo of a tree"
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
factory :user do
|
||||
email "test@example.com"
|
||||
password_digest "password"
|
||||
|
||||
@ -25,8 +25,8 @@ RSpec.configure do |config|
|
||||
# config.mock_with :flexmock
|
||||
# config.mock_with :rr
|
||||
|
||||
# Include FactoryGirl methods
|
||||
config.include FactoryGirl::Syntax::Methods
|
||||
# Include FactoryBot methods
|
||||
config.include FactoryBot::Syntax::Methods
|
||||
config.include Ajax, type: :feature
|
||||
|
||||
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
||||
|
||||
Loading…
Reference in New Issue
Block a user