Skip to content
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

Fix a invalid base class comment for rubocop-rspec_rails #1851

Merged
merged 1 commit into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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