Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-06-18 18:02:38 +0400
committerMarin Jankovski <marin@gitlab.com>2014-06-19 13:24:59 +0400
commit2c3626884efb86ac4477754780e5c5d612e5264e (patch)
tree4dbffdf0787088250374c0c87c338f1d56a72f08 /features/steps/project/redirects.rb
parenta1eb1ad1685c88de953ad15c1f48f74b10e4ae3e (diff)
Test the redirect after sign in.
Diffstat (limited to 'features/steps/project/redirects.rb')
-rw-r--r--features/steps/project/redirects.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/features/steps/project/redirects.rb b/features/steps/project/redirects.rb
index cfa4ce82be3..16c32a4d56a 100644
--- a/features/steps/project/redirects.rb
+++ b/features/steps/project/redirects.rb
@@ -31,5 +31,11 @@ class Spinach::Features::ProjectRedirects < Spinach::FeatureSteps
project = Project.find_by(name: 'Community')
visit project_path(project) + 'DoesNotExist'
end
+
+ step 'I should be redirected to "Community" page' do
+ project = Project.find_by(name: 'Community')
+ page.current_path.should == "/#{project.path_with_namespace}"
+ page.status_code.should == 200
+ end
end