summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-11-19 15:56:03 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2015-11-19 15:56:03 +0100
commita5b10196e649b57cf7cc698fe6fb34f73eec47ea (patch)
tree150849cf7630e0cbf6489d129f978df3f4094197 /spec
parentfd6b58949652c5fb9925c061fae823da7e468ca2 (diff)
downloadgitlab-ce-a5b10196e649b57cf7cc698fe6fb34f73eec47ea.tar.gz
Fix tests
Diffstat (limited to 'spec')
-rw-r--r--spec/services/ci/create_commit_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/ci/create_commit_service_spec.rb b/spec/services/ci/create_commit_service_spec.rb
index 58d81c46a6d..e0ede1d58b7 100644
--- a/spec/services/ci/create_commit_service_spec.rb
+++ b/spec/services/ci/create_commit_service_spec.rb
@@ -64,7 +64,7 @@ module Ci
expect(result).to be_persisted
expect(result.builds.any?).to be_falsey
expect(result.status).to eq('skipped')
- expect(commit.yaml_errors).to_not be_nil
+ expect(result.yaml_errors).to be_nil
end
it 'skips commits if yaml is invalid' do
@@ -79,7 +79,7 @@ module Ci
commits: commits
)
expect(commit.builds.any?).to be false
- expect(commit.status).to eq('skipped')
+ expect(commit.status).to eq('failed')
expect(commit.yaml_errors).to_not be_nil
end