hbc: remove all *_to_slashes

This commit is contained in:
Vítor Galvão 2019-04-17 16:31:35 +01:00
parent b5b24be48a
commit 0ee226769a
2 changed files with 0 additions and 16 deletions

View File

@ -5,7 +5,6 @@ module Cask
"." => :dots,
"-" => :hyphens,
"_" => :underscores,
"/" => :slashes,
}.freeze
DIVIDER_REGEX = /(#{DIVIDERS.keys.map { |v| Regexp.quote(v) }.join('|')})/.freeze

View File

@ -171,11 +171,6 @@ describe Cask::DSL::Version, :cask do
"1.2.3_4-5" => "1_2_3_4-5"
end
describe "#dots_to_slashes" do
include_examples "version expectations hash", :dots_to_slashes,
"1.2.3_4-5" => "1/2/3_4-5"
end
describe "#hyphens_to_dots" do
include_examples "version expectations hash", :hyphens_to_dots,
"1.2.3_4-5" => "1.2.3_4.5"
@ -186,11 +181,6 @@ describe Cask::DSL::Version, :cask do
"1.2.3_4-5" => "1.2.3_4_5"
end
describe "#hyphens_to_slashes" do
include_examples "version expectations hash", :hyphens_to_slashes,
"1.2.3_4-5" => "1.2.3_4/5"
end
describe "#underscores_to_dots" do
include_examples "version expectations hash", :underscores_to_dots,
"1.2.3_4-5" => "1.2.3.4-5"
@ -201,11 +191,6 @@ describe Cask::DSL::Version, :cask do
"1.2.3_4-5" => "1.2.3-4-5"
end
describe "#underscores_to_slashes" do
include_examples "version expectations hash", :underscores_to_slashes,
"1.2.3_4-5" => "1.2.3/4-5"
end
describe "#no_dots" do
include_examples "version expectations hash", :no_dots,
"1.2.3_4-5" => "123_4-5"