diff options
| author | Markus Reiter | 2017-10-04 11:40:38 +0200 |
|---|---|---|
| committer | GitHub | 2017-10-04 11:40:38 +0200 |
| commit | 0fbcbc7864655fb116b4d60bf143e06d51264e55 (patch) | |
| tree | 12216995231ea044d01f53e55006e98e8876851d /Library/Homebrew/test | |
| parent | 67afb6ea6888a41313c167d68cab514d6d94a39b (diff) | |
| parent | a92b6318eb9895ed962612c26abbf0c3f25ce09a (diff) | |
| download | brew-0fbcbc7864655fb116b4d60bf143e06d51264e55.tar.bz2 | |
Merge pull request #3259 from reitermarkus/underscore_supporting_uri
Remove `UnderscoreSupportingURI`.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/cask/dsl/appcast_spec.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/cask/underscore_supporting_uri_spec.rb | 14 |
2 files changed, 1 insertions, 15 deletions
diff --git a/Library/Homebrew/test/cask/dsl/appcast_spec.rb b/Library/Homebrew/test/cask/dsl/appcast_spec.rb index ccc6a4633..bf703eba2 100644 --- a/Library/Homebrew/test/cask/dsl/appcast_spec.rb +++ b/Library/Homebrew/test/cask/dsl/appcast_spec.rb @@ -4,7 +4,7 @@ describe Hbc::DSL::Appcast do subject { described_class.new(url, params) } let(:url) { "http://example.com" } - let(:uri) { Hbc::UnderscoreSupportingURI.parse(url) } + let(:uri) { URI(url) } let(:params) { {} } describe "#to_s" do diff --git a/Library/Homebrew/test/cask/underscore_supporting_uri_spec.rb b/Library/Homebrew/test/cask/underscore_supporting_uri_spec.rb deleted file mode 100644 index 49d3ea63f..000000000 --- a/Library/Homebrew/test/cask/underscore_supporting_uri_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -describe Hbc::UnderscoreSupportingURI, :cask do - describe "parse" do - it "works like normal on normal URLs" do - uri = Hbc::UnderscoreSupportingURI.parse("http://example.com/TestCask.dmg") - expect(uri).to eq(URI("http://example.com/TestCask.dmg")) - end - - it "works just fine on URIs with underscores" do - uri = Hbc::UnderscoreSupportingURI.parse("http://dl_dir.qq.com/qqfile/qq/QQforMac/QQ_V3.0.0.dmg") - expect(uri.host).to include("_") - expect(uri.to_s).to eq("http://dl_dir.qq.com/qqfile/qq/QQforMac/QQ_V3.0.0.dmg") - end - end -end |
