summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/features/commits_spec.rb13
1 files changed, 2 insertions, 11 deletions
diff --git a/spec/features/commits_spec.rb b/spec/features/commits_spec.rb
index a30b00d..4e476df 100644
--- a/spec/features/commits_spec.rb
+++ b/spec/features/commits_spec.rb
@@ -19,19 +19,9 @@ describe "Commits" do
it { page.should have_content @commit.git_author_name }
end
- describe "Cancel commit" do
- it "cancels commit" do
- visit project_ref_commit_path(@project, @commit.ref, @commit.sha)
- click_on "Cancel"
-
- page.should have_content "canceled"
- end
- end
-
describe ".gitlab-ci.yml not found warning" do
it "does not show warning" do
visit project_ref_commit_path(@project, @commit.ref, @commit.sha)
- click_on "Cancel"
page.should_not have_content ".gitlab-ci.yml not found in this commit"
end
@@ -41,7 +31,8 @@ describe "Commits" do
@commit.save
visit project_ref_commit_path(@project, @commit.ref, @commit.sha)
- click_on "Cancel"
+
+ save_and_open_page
page.should have_content ".gitlab-ci.yml not found in this commit"
end