more updates for setting output

This commit is contained in:
Ethan Dennis
2023-02-28 09:18:02 -08:00
committed by GitHub
parent 94acf2f4f2
commit 6acf71f389
7 changed files with 25 additions and 8 deletions
+1 -1
View File
@@ -104,6 +104,6 @@ RSpec.describe Command do
COMMENT
end
it { expect { subject }.to output(/::set-output name=command::audit/).to_stdout }
it { expect { subject }.to change { File.readlines(ENV["GITHUB_OUTPUT"], chomp: true).last }.to("command=audit") }
end
end
+7 -1
View File
@@ -52,6 +52,12 @@ RSpec.describe Provider do
it { expect { subject }.not_to raise_error }
end
context "when a provider is a quoted string" do
let(:labels) { "[ \"jenkins\" ]" }
it { expect { subject }.not_to raise_error }
end
end
describe "#cli_command" do
@@ -92,6 +98,6 @@ RSpec.describe Provider do
LABELS
end
it { expect { subject }.to output(/::set-output name=provider::azure-devops/).to_stdout }
it { expect { subject }.to change { File.readlines(ENV["GITHUB_OUTPUT"], chomp: true).last }.to("provider=azure-devops") }
end
end