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 }