Avoid magic prefix parsing
This commit is contained in:
@@ -23,7 +23,7 @@ RSpec.describe CircleCI::Audit do
|
||||
ISSUE
|
||||
end
|
||||
|
||||
it { is_expected.to eq(["--circle-ci-organization", "testing"]) }
|
||||
it { is_expected.to eq([["--circle-ci-organization", "testing"]]) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -15,7 +15,7 @@ RSpec.describe CircleCI::DryRun do
|
||||
context "when the comment body contains a project" do
|
||||
let(:comment_body) { "/dry-run --project repo" }
|
||||
|
||||
it { is_expected.to eq(["--circle-ci-organization", "testing", "--circle-ci-project", "repo"]) }
|
||||
it { is_expected.to eq([["--circle-ci-organization", "testing"], ["--circle-ci-project", "repo"]]) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -15,7 +15,7 @@ RSpec.describe CircleCI::Migrate do
|
||||
context "when the comment body contains a project" do
|
||||
let(:comment_body) { "/migrate --project repo --target-url https://github.com/org/repo" }
|
||||
|
||||
it { is_expected.to eq(["--circle-ci-organization", "testing", "--circle-ci-project", "repo", "--target-url", "https://github.com/org/repo"]) }
|
||||
it { is_expected.to eq([["--circle-ci-organization", "testing"], ["--circle-ci-project", "repo"], ["--target-url", "https://github.com/org/repo"]]) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user