Avoid magic prefix parsing

This commit is contained in:
Ethan Dennis
2023-07-31 16:45:40 -07:00
parent 5b17fd0d81
commit f6e39fd06c
32 changed files with 67 additions and 61 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ RSpec.describe GitlabCI::Audit do
ISSUE
end
it { is_expected.to eq(["--namespace", "testing"]) }
it { is_expected.to eq([["--namespace", "testing"]]) }
end
end
end
+1 -1
View File
@@ -15,7 +15,7 @@ RSpec.describe GitlabCI::DryRun do
context "when the comment body contains a pipeline id" do
let(:comment_body) { "/dry-run --project project" }
it { is_expected.to eq(["--namespace", "testing", "--project", "project"]) }
it { is_expected.to eq([["--namespace", "testing"], ["--project", "project"]]) }
end
end
end
+1 -1
View File
@@ -15,7 +15,7 @@ RSpec.describe GitlabCI::Migrate do
context "when the comment body contains a pipeline id" do
let(:comment_body) { "/migrate --project project --target-url https://github.com/org/repo" }
it { is_expected.to eq(["--namespace", "testing", "--project", "project", "--target-url", "https://github.com/org/repo"]) }
it { is_expected.to eq([["--namespace", "testing"], ["--project", "project"], ["--target-url", "https://github.com/org/repo"]]) }
end
end
end