diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-06-18 18:02:38 +0400 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-06-19 13:24:59 +0400 |
commit | 2c3626884efb86ac4477754780e5c5d612e5264e (patch) | |
tree | 4dbffdf0787088250374c0c87c338f1d56a72f08 /features/steps/project/redirects.rb | |
parent | a1eb1ad1685c88de953ad15c1f48f74b10e4ae3e (diff) |
Test the redirect after sign in.
Diffstat (limited to 'features/steps/project/redirects.rb')
-rw-r--r-- | features/steps/project/redirects.rb | 6 |
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 |