summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-06-25 10:32:46 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-25 10:32:46 +0300
commit515834f98c796de48af025704d742a34c90d7084 (patch)
tree6ebbfb80832aea1e9843160024de31bf00c1aa2f
parent60681251ffa70bba1c8f7288907b5696d3688962 (diff)
downloadgitlab-ci-to_stable.tar.gz
spec fixto_stable
-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