diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-16 00:49:27 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-16 00:51:45 +0300 |
commit | 9419046196dc1a09716d5b2bbc424b4f89d696ae (patch) | |
tree | b60f088240bfffcda8e3021763a782308e896eed /spec/models/ci | |
parent | 0aa6061d6ab0ab921ad585329b43b84d20da873e (diff) |
Fix specs
Diffstat (limited to 'spec/models/ci')
-rw-r--r-- | spec/models/ci/commit_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/ci/commit_spec.rb b/spec/models/ci/commit_spec.rb index 9ad30407769..94fc21b4ea9 100644 --- a/spec/models/ci/commit_spec.rb +++ b/spec/models/ci/commit_spec.rb @@ -248,7 +248,7 @@ describe Ci::Commit do end context 'properly creates builds "when" is defined' do - let(:yaml) { + let(:yaml) do { stages: ["build", "test", "test_failure", "deploy", "cleanup"], build: { @@ -274,7 +274,7 @@ describe Ci::Commit do when: "always", } } - } + end before do stub_ci_commit_yaml_file(YAML.dump(yaml)) |