Commit cc5e516b authored by Marcelo Freitas's avatar Marcelo Freitas

Replacing factory_girl gem for factory_bot

parent 43074566
Pipeline #20636565 passed with stage
in 5 minutes and 59 seconds
......@@ -55,7 +55,7 @@ group :production do
end
group :development, :test do
gem "factory_girl_rails"
gem "factory_bot_rails"
gem 'capistrano', require: false
gem 'capistrano-rvm', require: false
gem 'capistrano-rails', require: false
......
......@@ -125,10 +125,10 @@ GEM
unf (>= 0.0.5, < 1.0.0)
erubis (2.7.0)
execjs (2.7.0)
factory_girl (4.9.0)
factory_bot (4.8.2)
activesupport (>= 3.0.0)
factory_girl_rails (4.9.0)
factory_girl (~> 4.9.0)
factory_bot_rails (4.8.2)
factory_bot (~> 4.8.2)
railties (>= 3.0.0)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
......@@ -361,7 +361,7 @@ DEPENDENCIES
carrierwave-base64
cloudinary
coffee-rails (~> 4.1.0)
factory_girl_rails
factory_bot_rails
file_validators
friendly_id (~> 5.1.0)
github_api (~> 0.14.5)
......
FactoryGirl.define do
FactoryBot.define do
factory :category do
name "MyString"
end
......
FactoryGirl.define do
FactoryBot.define do
factory :comment do
content "A simple content of a comment."
user
......
FactoryGirl.define do
FactoryBot.define do
factory :default_tip do
title "MyString"
content "MyText"
......
FactoryGirl.define do
FactoryBot.define do
factory :forum do
end
end
FactoryGirl.define do
FactoryBot.define do
factory :message do
user
topic
......
FactoryGirl.define do
FactoryBot.define do
factory :open_hub_datum, class: 'OpenHubData' do
open_hub_id 1
name "MyString"
......
FactoryGirl.define do
FactoryBot.define do
factory :owner_project do
project
user
......
FactoryGirl.define do
FactoryBot.define do
factory :ownership_request do
user_id 1
project_id 1
......
FactoryGirl.define do
FactoryBot.define do
factory :project do
sequence(:name) { |n| "Project #{n}"}
description "A simple project description."
......
FactoryGirl.define do
FactoryBot.define do
factory :tag do
name "MyString"
end
......
FactoryGirl.define do
FactoryBot.define do
factory :topic do
sequence(:title) { |n| "Title of a Topic #{n}"}
locked false
......
FactoryGirl.define do
FactoryBot.define do
factory :user do
sequence(:name) { |n| "User #{n}"}
birth "04/11/1995"
......
FactoryGirl.define do
FactoryBot.define do
factory :widget do
sequence(:title) { |n| "Title widget #{n}"}
tab "about"
......
......@@ -6,7 +6,7 @@ ActiveRecord::Migration.maintain_test_schema!
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
include FactoryGirl::Syntax::Methods
include FactoryBot::Syntax::Methods
# Add more helper methods to be used by all tests here...
end
......@@ -14,7 +14,7 @@ end
class ActionDispatch::IntegrationTest
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
include FactoryGirl::Syntax::Methods
include FactoryBot::Syntax::Methods
# Add more helper methods to be used by all tests here...
def set_current_user
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment