Skip to content

Commit

Permalink
Merge pull request #9374 from reitermarkus/tests-online
Browse files Browse the repository at this point in the history
Mark some `audit` tests with `:needs_network`.
  • Loading branch information
reitermarkus committed Dec 2, 2020
2 parents f3e8db4 + 413b9d7 commit 5505ab2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Library/Homebrew/test/dev-cmd/audit_spec.rb
Expand Up @@ -293,7 +293,7 @@ class Foo < Formula
end

it "checks online and verifies that a standard license id is the same "\
"as what is indicated on its Github repo" do
"as what is indicated on its Github repo", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"
Expand All @@ -309,7 +309,7 @@ class Cask < Formula
end

it "checks online and verifies that a standard license id with AND is the same "\
"as what is indicated on its Github repo" do
"as what is indicated on its Github repo", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"
Expand All @@ -325,7 +325,7 @@ class Cask < Formula
end

it "checks online and verifies that a standard license id with WITH is the same "\
"as what is indicated on its Github repo" do
"as what is indicated on its Github repo", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"
Expand All @@ -340,7 +340,7 @@ class Cask < Formula
expect(fa.problems).to be_empty
end

it "verifies that a license exception has standard spdx ids" do
it "verifies that a license exception has standard spdx ids", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"
Expand All @@ -359,7 +359,7 @@ class Cask < Formula
EOS
end

it "verifies that a license exception has non-deprecated spdx ids" do
it "verifies that a license exception has non-deprecated spdx ids", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"
Expand All @@ -379,7 +379,7 @@ class Cask < Formula
end

it "checks online and verifies that a standard license id is in the same exempted license group" \
"as what is indicated on its GitHub repo" do
"as what is indicated on its GitHub repo", :needs_network do
fa = formula_auditor "cask", <<~RUBY, spdx_license_data: spdx_license_data, online: true, new_formula: true
class Cask < Formula
url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"
Expand All @@ -393,7 +393,7 @@ class Cask < Formula
end

it "checks online and verifies that a standard license array is in the same exempted license group" \
"as what is indicated on its GitHub repo" do
"as what is indicated on its GitHub repo", :needs_network do
fa = formula_auditor "cask", <<~RUBY, spdx_license_data: spdx_license_data, online: true, new_formula: true
class Cask < Formula
url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"
Expand All @@ -407,7 +407,7 @@ class Cask < Formula
end

it "checks online and detects that a formula-specified license is not "\
"the same as what is indicated on its Github repository" do
"the same as what is indicated on its Github repository", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"
Expand All @@ -424,7 +424,7 @@ class Cask < Formula
end

it "allows a formula-specified license that differs from its GitHub "\
"repository for formulae on the mismatched license allowlist" do
"repository for formulae on the mismatched license allowlist", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"
Expand All @@ -441,7 +441,7 @@ class Cask < Formula
end

it "checks online and detects that an array of license does not contain "\
"what is indicated on its Github repository" do
"what is indicated on its Github repository", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"
Expand All @@ -458,7 +458,7 @@ class Cask < Formula
end

it "checks online and verifies that an array of license contains "\
"what is indicated on its Github repository" do
"what is indicated on its Github repository", :needs_network do
formula_text = <<~RUBY
class Cask < Formula
url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"
Expand Down

0 comments on commit 5505ab2

Please sign in to comment.