summaryrefslogtreecommitdiff
path: root/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-04-18 15:19:24 -0400
committerKamil Trzcinski <ayufan@ayufan.eu>2016-04-18 15:19:24 -0400
commit3f66f4470a7399a5079de04b8b2506edc159b90a (patch)
tree2731cf01494a7c35bd34e6bbef1053013989d59e /spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
parent2665af68a5a151bc967797d5eb1e3a1c1041f336 (diff)
downloadgitlab-ce-make-before-after-overridable.tar.gz
Diffstat (limited to 'spec/lib/ci/gitlab_ci_yaml_processor_spec.rb')
-rw-r--r--spec/lib/ci/gitlab_ci_yaml_processor_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
index a20b9ead559..643acf0303c 100644
--- a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
+++ b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
@@ -295,12 +295,12 @@ module Ci
describe "before_script" do
context "in global context" do
- let(:config) {
+ let(:config) do
{
before_script: ["global script"],
test: { script: ["script"] }
}
- }
+ end
it "return commands with scripts concencaced" do
expect(subject[:commands]).to eq("global script\nscript")
@@ -308,12 +308,12 @@ module Ci
end
context "overwritten in local context" do
- let(:config) {
+ let(:config) do
{
before_script: ["global script"],
test: { before_script: ["local script"], script: ["script"] }
}
- }
+ end
it "return commands with scripts concencaced" do
expect(subject[:commands]).to eq("local script\nscript")
@@ -322,11 +322,11 @@ module Ci
end
describe "script" do
- let(:config) {
+ let(:config) do
{
test: { script: ["script"] }
}
- }
+ end
it "return commands with scripts concencaced" do
expect(subject[:commands]).to eq("script")
@@ -348,12 +348,12 @@ module Ci
end
context "overwritten in local context" do
- let(:config) {
+ let(:config) do
{
after_script: ["local after_script"],
test: { after_script: ["local after_script"], script: ["script"] }
}
- }
+ end
it "return after_script in options" do
expect(subject[:options][:after_script]).to eq(["local after_script"])