Add and apply RSpec/Rails/InferredSpecType rule

This rule was added in rubocop-rspec 2.14.0.
This commit is contained in:
Javi Martín
2023-09-06 15:45:40 +02:00
parent 8e276e2891
commit 05757c7f02
14 changed files with 16 additions and 13 deletions

View File

@@ -10,7 +10,7 @@ require "rails_helper"
# end
# end
# end
RSpec.describe CommentsHelper, type: :helper do
RSpec.describe CommentsHelper do
describe "#user_level_class" do
def comment_double(as_administrator: false, as_moderator: false, official: false)
user = instance_double("User", official?: official, official_level: "Y")