New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace factory_girl by factory_bot everywhere #510
Conversation
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,11 +1,11 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
test/unit/mendeley_search_test.rb
Outdated
existing_mendeley_paper = FactoryGirl. | ||
build_stubbed(:mendeley_paper, uuid: uuid, snps: [@snp]) | ||
existing_mendeley_paper = FactoryBot | ||
.build_stubbed(:mendeley_paper, uuid: uuid, snps: [@snp]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/MultilineMethodCallIndentation: Align .build_stubbed with FactoryBot on line 101.
@@ -79,7 +79,7 @@ end | |||
group :development, :test do | |||
gem 'uuidtools' | |||
gem 'pry-rails', require: 'pry' unless ENV['CI'] | |||
gem 'factory_girl_rails' | |||
gem 'factory_bot_rails' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bundler/OrderedGems: Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem factory_bot_rails should appear before pry-rails.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
FactoryGirl.define do | |||
FactoryBot.define do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
So we get rid of a few warnings here and there