Skip to content

Commit

Permalink
chore: fix rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgz committed Jan 23, 2025
1 parent 975f3f2 commit 98f593c
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions spec/site_maps/primitive/string_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -75,7 +75,6 @@ def self.constantize(string)
end
end


describe "#underscore" do
subject { described_class.new(arg).underscore }

Expand Down

0 comments on commit 98f593c

Please sign in to comment.