From 515834f98c796de48af025704d742a34c90d7084 Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Thu, 25 Jun 2015 10:32:46 +0300 Subject: spec fix --- spec/features/commits_spec.rb | 13 ++----------- 1 file 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 -- cgit v1.2.1