Skip to content

Commit

Permalink
Merge pull request #1851 from rubocop/fix-invalid-comment
Browse files Browse the repository at this point in the history
Fix a invalid base class comment for rubocop-rspec_rails
  • Loading branch information
bquorning authored Mar 30, 2024
2 parents 29da60c + fd811b8 commit 8a109ff
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Rails
# # allow(foo).to receive(:bar)
# # end
# #
# class AvoidSetupHook < RuboCop::Cop::RSpecRails::Base; end
# class AvoidSetupHook < RuboCop::Cop::RSpec::Base; end
AvoidSetupHook = ::RuboCop::Cop::RSpecRails::AvoidSetupHook
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/rails/http_status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module Rails
# # it { is_expected.to have_http_status :success }
# # it { is_expected.to have_http_status :error }
# #
# class HttpStatus < RuboCop::Cop::RSpecRails::Base; end
# class HttpStatus < RuboCop::Cop::RSpec::Base; end
HttpStatus = ::RuboCop::Cop::RSpecRails::HttpStatus
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/rails/inferred_spec_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module Rails
# # RSpec.describe User, type: :common do
# # end
# #
# class InferredSpecType < RuboCop::Cop::RSpecRails::Base; end
# class InferredSpecType < RuboCop::Cop::RSpec::Base; end
InferredSpecType = ::RuboCop::Cop::RSpecRails::InferredSpecType
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/rails/minitest_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module Rails
# # expect(a).to be(true)
# # expect(a).to be(false)
# #
# class MinitestAssertions < RuboCop::Cop::RSpecRails::Base; end
# class MinitestAssertions < RuboCop::Cop::RSpec::Base; end
MinitestAssertions = ::RuboCop::Cop::RSpecRails::MinitestAssertions
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/rails/negation_be_valid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module Rails
# # # good (with method chain)
# # expect(foo).to be_invalid.or be_even
# #
# class NegationBeValid < RuboCop::Cop::RSpecRails::Base; end
# class NegationBeValid < RuboCop::Cop::RSpec::Base; end
NegationBeValid = ::RuboCop::Cop::RSpecRails::NegationBeValid
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/rails/travel_around.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Rails
# # # good
# # before { freeze_time }
# #
# class TravelAround < RuboCop::Cop::RSpecRails::Base; end
# class TravelAround < RuboCop::Cop::RSpec::Base; end
TravelAround = ::RuboCop::Cop::RSpecRails::TravelAround
end
end
Expand Down

0 comments on commit 8a109ff

Please sign in to comment.