From 98f593c1e93c6a3d40b77f1e9b3dd2888788afcc Mon Sep 17 00:00:00 2001 From: "Marcos G. Zimmermann" Date: Wed, 22 Jan 2025 23:21:45 -0300 Subject: [PATCH] chore: fix rubocop offenses --- spec/site_maps/primitive/string_spec.rb | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/spec/site_maps/primitive/string_spec.rb b/spec/site_maps/primitive/string_spec.rb index b756090..ba43221 100644 --- a/spec/site_maps/primitive/string_spec.rb +++ b/spec/site_maps/primitive/string_spec.rb @@ -49,10 +49,10 @@ def self.classify(string) context "when dry-inflector is available" do before do stub_const("Dry::Inflector", Class.new { - def constantize(string) - MyConstant if string == "MyConstant" - end - }) + def constantize(string) + MyConstant if string == "MyConstant" + end + }) end it "returns the constantized string" do @@ -63,10 +63,10 @@ def constantize(string) context "when active-support is available" do before do stub_const("ActiveSupport::Inflector", Class.new { - def self.constantize(string) - MyConstant if string == "MyConstant" - end - }) + def self.constantize(string) + MyConstant if string == "MyConstant" + end + }) end it "returns the constantized string" do @@ -75,7 +75,6 @@ def self.constantize(string) end end - describe "#underscore" do subject { described_class.new(arg).underscore }