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
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
gem 'factory_girl_rails'
|
gem 'factory_bot_rails'
|
||||||
gem 'shoulda'
|
gem 'shoulda'
|
||||||
gem 'poltergeist'
|
gem 'poltergeist'
|
||||||
gem 'database_cleaner'
|
gem 'database_cleaner'
|
||||||
|
|||||||
@ -118,10 +118,10 @@ GEM
|
|||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
excon (0.57.1)
|
excon (0.57.1)
|
||||||
execjs (2.7.0)
|
execjs (2.7.0)
|
||||||
factory_girl (4.8.0)
|
factory_bot (4.8.2)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
factory_girl_rails (4.8.0)
|
factory_bot_rails (4.8.2)
|
||||||
factory_girl (~> 4.8.0)
|
factory_bot (~> 4.8.2)
|
||||||
railties (>= 3.0.0)
|
railties (>= 3.0.0)
|
||||||
ffi (1.9.21)
|
ffi (1.9.21)
|
||||||
fivemat (1.3.5)
|
fivemat (1.3.5)
|
||||||
@ -345,7 +345,7 @@ DEPENDENCIES
|
|||||||
dotenv-rails
|
dotenv-rails
|
||||||
dragonfly
|
dragonfly
|
||||||
dragonfly-s3_data_store
|
dragonfly-s3_data_store
|
||||||
factory_girl_rails
|
factory_bot_rails
|
||||||
fivemat
|
fivemat
|
||||||
jquery-rails
|
jquery-rails
|
||||||
kaminari
|
kaminari
|
||||||
|
|||||||
@ -1,6 +1,4 @@
|
|||||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
FactoryBot.define do
|
||||||
|
|
||||||
FactoryGirl.define do
|
|
||||||
factory :category do
|
factory :category do
|
||||||
sequence(:name) { |n| "Test Category #{n}" }
|
sequence(:name) { |n| "Test Category #{n}" }
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,6 +1,4 @@
|
|||||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
FactoryBot.define do
|
||||||
|
|
||||||
FactoryGirl.define do
|
|
||||||
factory :contact do
|
factory :contact do
|
||||||
email "test@danbarberphoto.com"
|
email "test@danbarberphoto.com"
|
||||||
name "Dan Barber"
|
name "Dan Barber"
|
||||||
|
|||||||
@ -1,6 +1,4 @@
|
|||||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
FactoryBot.define do
|
||||||
|
|
||||||
FactoryGirl.define do
|
|
||||||
factory :page do
|
factory :page do
|
||||||
name "page"
|
name "page"
|
||||||
title "Page"
|
title "Page"
|
||||||
|
|||||||
@ -1,6 +1,4 @@
|
|||||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
FactoryBot.define do
|
||||||
|
|
||||||
FactoryGirl.define do
|
|
||||||
factory :photo do
|
factory :photo do
|
||||||
title "A Photo"
|
title "A Photo"
|
||||||
description "A lovely photo of a tree"
|
description "A lovely photo of a tree"
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
FactoryGirl.define do
|
FactoryBot.define do
|
||||||
factory :user do
|
factory :user do
|
||||||
email "test@example.com"
|
email "test@example.com"
|
||||||
password_digest "password"
|
password_digest "password"
|
||||||
|
|||||||
@ -25,8 +25,8 @@ RSpec.configure do |config|
|
|||||||
# config.mock_with :flexmock
|
# config.mock_with :flexmock
|
||||||
# config.mock_with :rr
|
# config.mock_with :rr
|
||||||
|
|
||||||
# Include FactoryGirl methods
|
# Include FactoryBot methods
|
||||||
config.include FactoryGirl::Syntax::Methods
|
config.include FactoryBot::Syntax::Methods
|
||||||
config.include Ajax, type: :feature
|
config.include Ajax, type: :feature
|
||||||
|
|
||||||
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user