summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2015-12-25 11:30:48 -0500
committerJosh Frye <joshfng@gmail.com>2016-01-03 18:12:27 -0500
commitedd2ce38369e5a332b1b9932647d670862ffddbf (patch)
tree90c3ba9c3b5b23cf30570f621e7015e3d855933f /features
parent796c11e9a7d955ac40c3d1f8427f3f65063ac8c4 (diff)
downloadgitlab-ce-edd2ce38369e5a332b1b9932647d670862ffddbf.tar.gz
Change text back. Add additional tests.joshfng/gitlab-ce-fix-3802
Diffstat (limited to 'features')
-rw-r--r--features/project/fork.feature2
-rw-r--r--features/steps/project/fork.rb13
2 files changed, 13 insertions, 2 deletions
diff --git a/features/project/fork.feature b/features/project/fork.feature
index 1182f493e34..37cd53ee977 100644
--- a/features/project/fork.feature
+++ b/features/project/fork.feature
@@ -23,3 +23,5 @@ Feature: Project Fork
Then I should see "New merge request"
And I goto the Merge Requests page
Then I should see "New merge request"
+ And I click link "New merge request"
+ Then I should see the new merge request page for my namespace
diff --git a/features/steps/project/fork.rb b/features/steps/project/fork.rb
index 878ddea46ff..e98bd51ca89 100644
--- a/features/steps/project/fork.rb
+++ b/features/steps/project/fork.rb
@@ -31,8 +31,8 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps
end
end
- step 'I should see "New Merge Request"' do
- expect(page).to have_content "New Merge Request"
+ step 'I should see "New merge request"' do
+ expect(page).to have_content(/new merge request/i)
end
step 'I goto the Merge Requests page' do
@@ -40,4 +40,13 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps
click_link "Merge Requests"
end
end
+
+ step 'I click link "New merge request"' do
+ expect(page).to have_content(/new merge request/i)
+ click_link "New Merge Request"
+ end
+
+ step 'I should see the new merge request page for my namespace' do
+ current_path.should have_content(/#{current_user.namespace.name}/i)
+ end
end