Merge pull request #10328 from MikeMcQuaid/delete-skip-test

cask/cmd/info_spec: remove skipped test.
This commit is contained in:
Mike McQuaid 2021-01-14 16:41:42 +00:00 committed by GitHub
commit edc64177be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,50 +156,4 @@ describe Cask::Cmd::Info, :cask do
Caffeine.app (App)
EOS
end
it "can run be run with a url twice and returns analytics", :needs_network do
skip "Receiving a 416 when fetching docker.rb"
analytics = {
"analytics" => {
"install" => {
"30d" => { "docker" => 1000 }, "90d" => { "docker" => 2000 }, "365d" => { "docker" => 3000 }
},
},
}
expect(Utils::Analytics).to receive(:formulae_brew_sh_json).twice.with("cask/docker.json")
.and_return(analytics)
expect {
described_class.run("https://raw.githubusercontent.com/Homebrew/homebrew-cask" \
"/d0b2c58652ae5eff20a7a4ac93292a08b250912b/Casks/docker.rb")
described_class.run("https://raw.githubusercontent.com/Homebrew/homebrew-cask" \
"/d0b2c58652ae5eff20a7a4ac93292a08b250912b/Casks/docker.rb")
}.to output(<<~EOS).to_stdout
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-cask/d0b2c58652ae5eff20a7a4ac93292a08b250912b/Casks/docker.rb.
docker: 2.0.0.2-ce-mac81,30215 (auto_updates)
https://www.docker.com/community-edition
Not installed
==> Names
Docker Community Edition
Docker CE
==> Description
None
==> Artifacts
Docker.app (App)
==> Analytics
install: 1,000 (30 days), 2,000 (90 days), 3,000 (365 days)
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-cask/d0b2c58652ae5eff20a7a4ac93292a08b250912b/Casks/docker.rb.
docker: 2.0.0.2-ce-mac81,30215 (auto_updates)
https://www.docker.com/community-edition
Not installed
==> Names
Docker Community Edition
Docker CE
==> Description
None
==> Artifacts
Docker.app (App)
==> Analytics
install: 1,000 (30 days), 2,000 (90 days), 3,000 (365 days)
EOS
end
end