Update FactoryBot strings & urls

This commit is contained in:
Henne Vogelsang 2018-09-03 20:48:28 +02:00
parent 0a19418d15
commit 64d8f05bdd
34 changed files with 34 additions and 34 deletions

View file

@ -926,7 +926,7 @@ Style/StringLiterals:
- 'Vagrantfile'
- 'lib/tasks/dump_db.rake'
- 'lib/tasks/events_registrations.rake'
- 'lib/tasks/factory_girl.rake'
- 'lib/tasks/factory_bot.rake'
- 'lib/tasks/user.rake'
# Offense count: 14

View file

@ -95,7 +95,7 @@ vagrant exec overcommit install
You can read through the current enabled hooks in the `.overcommit.yml` file.
### Test Suite
We are using [rspec](http://rspec.info/)+[capybara](http://teamcapybara.github.io/capybara/)+[factory girl](https://github.com/thoughtbot/factory_girl) as a test suite. You can run it locally
We are using [rspec](http://rspec.info/)+[capybara](http://teamcapybara.github.io/capybara/)+[factory bot](https://github.com/thoughtbot/factory_bot) as a test suite. You can run it locally
```shell
vagrant exec bundle exec rspec

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
namespace :factory_girl do
namespace :factory_bot do
desc "Verify that all FactoryBot factories are valid"
task lint: :environment do
if Rails.env.test?
@ -11,7 +11,7 @@ namespace :factory_girl do
DatabaseCleaner.clean
end
else
system("bundle exec rake factory_girl:lint RAILS_ENV='test'")
system("bundle exec rake factory_bot:lint RAILS_ENV='test'")
end
end
end

View file

@ -28,7 +28,7 @@ namespace :data do
dot_env.puts "OSEM_ICHAIN_ENABLED=\"#{CONFIG['authentication']['ichain']['enabled']}\"" if CONFIG.has_key?(:authentication)
dot_env.puts "OSEM_TRANSIFEX_APIKEY=\"#{CONFIG['transifex_live_api_key']}\""
dot_env.puts "OSEM_ERRBIT_HOST=\"#{CONFIG['errbit_host']}\""
dot_env.puts "OSEM_FACTORY_LINT=\"#{CONFIG['factory_girl_lint']}\""
dot_env.puts "OSEM_FACTORY_LINT=\"#{CONFIG['factory_bot_lint']}\""
dot_env.puts "OSEM_SMTP_ADDRESS=\"#{CONFIG['mail_address']}\""
dot_env.puts "OSEM_SMTP_PORT=\"#{CONFIG['mail_port']}\""
dot_env.puts "OSEM_SMTP_USERNAME=\"#{CONFIG['mail_username']}\""

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :answer do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :campaign do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :cfp do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :comment do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :commercial do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :conference do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :email_settings do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :event_schedule do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :event_type do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :event_user do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :event do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :events_registration do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :lodging do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :openid do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :program do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :qanswer do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :question do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :question_type do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :registration do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :registration_period do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :room do
name { "Room #{Faker::Address.country}" }

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :schedule do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :splashpage do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :sponsor do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :sponsorship_level do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :target do

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
# It is a feature of our app that first signed up user is admin. This property
# is set in a before create callback `setup_role` in user model.

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :venue do
name { "#{Faker::Company.name} Office" }

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_girl
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :visit do