summaryrefslogtreecommitdiff
path: root/spec/features/ci/commits_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/ci/commits_spec.rb')
-rw-r--r--spec/features/ci/commits_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/features/ci/commits_spec.rb b/spec/features/ci/commits_spec.rb
index 657a9dabe9e..712a6137260 100644
--- a/spec/features/ci/commits_spec.rb
+++ b/spec/features/ci/commits_spec.rb
@@ -38,10 +38,9 @@ describe "Commits" do
end
it "shows warning" do
- @commit.push_data[:ci_yaml_file] = nil
- @commit.save
+ @commit_no_yaml = FactoryGirl.create :ci_empty_commit
- visit ci_commit_path(@commit)
+ visit ci_commit_path(@commit_no_yaml)
expect(page).to have_content ".gitlab-ci.yml not found in this commit"
end