1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

FactoryGirl → FactoryBot

This commit is contained in:
Daniel Barber 2018-02-14 22:37:06 -05:00
parent 84c03ecb33
commit cdf82df16a
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
8 changed files with 12 additions and 20 deletions

View File

@ -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'

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -1,4 +1,4 @@
FactoryGirl.define do
FactoryBot.define do
factory :user do
email "test@example.com"
password_digest "password"

View File

@ -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