summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-06-09 19:57:11 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-09 19:57:11 +0300
commit794fbd353ed99ba512e230cb824a7170bc5a25d2 (patch)
tree916c1f2b2b0e7de844fd19977eb0874dd85edad2 /spec
parent6657aff24cd6595bf3a0a8ede52dcf91cf5fa079 (diff)
downloadgitlab-ci-794fbd353ed99ba512e230cb824a7170bc5a25d2.tar.gz
spec fixlint
Diffstat (limited to 'spec')
-rw-r--r--spec/features/lint_spec.rb3
-rw-r--r--spec/lib/gitlab_ci_yaml_processor_spec.rb6
2 files changed, 3 insertions, 6 deletions
diff --git a/spec/features/lint_spec.rb b/spec/features/lint_spec.rb
index 8f030d8..9e68d9e 100644
--- a/spec/features/lint_spec.rb
+++ b/spec/features/lint_spec.rb
@@ -2,7 +2,6 @@ require 'spec_helper'
describe "Lint" do
it "Yaml parsing", js: true do
-
content = File.read(Rails.root.join('spec/support/gitlab_stubs/gitlab_ci.yml'))
visit lint_path
fill_in "content", with: content
@@ -14,7 +13,5 @@ describe "Lint" do
page.should have_content("Deploy Job - cap deploy")
page.should have_content("Deploy Job - Deploy to staging")
end
-
end
-
end
diff --git a/spec/lib/gitlab_ci_yaml_processor_spec.rb b/spec/lib/gitlab_ci_yaml_processor_spec.rb
index 2ce140c..22d0d6b 100644
--- a/spec/lib/gitlab_ci_yaml_processor_spec.rb
+++ b/spec/lib/gitlab_ci_yaml_processor_spec.rb
@@ -68,7 +68,7 @@ describe GitlabCiYamlProcessor do
commands: "\nls",
name: "ls",
deploy: true,
- refs: [],
+ refs: "",
tag_list: ""
}
end
@@ -85,7 +85,7 @@ describe GitlabCiYamlProcessor do
commands: "pwd\nls",
name: "ls",
deploy: true,
- refs: [],
+ refs: "",
tag_list: ""
}
end
@@ -102,7 +102,7 @@ describe GitlabCiYamlProcessor do
commands: "pwd\nls",
name: "Rspec",
deploy: true,
- refs: ["master", "deploy"],
+ refs: "master,deploy",
tag_list: ""
}
end