diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-24 10:28:41 +0400 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-26 11:51:17 +0400 |
commit | 89f7345f3ffdc212e60d4d657d878d1e5d6d6f9a (patch) | |
tree | 50929c127d5b45237cfbe9dd1dd26a406a7e7ed5 /features/steps/project/redirects.rb | |
parent | 1302dc8f0420dacec65ef1dcc955763c6c263cec (diff) |
Remove unnecessary page. from tests.
Diffstat (limited to 'features/steps/project/redirects.rb')
-rw-r--r-- | features/steps/project/redirects.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/features/steps/project/redirects.rb b/features/steps/project/redirects.rb index 39d39c8aeca..e54637120ce 100644 --- a/features/steps/project/redirects.rb +++ b/features/steps/project/redirects.rb @@ -48,8 +48,8 @@ class Spinach::Features::ProjectRedirects < Spinach::FeatureSteps 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 + current_path.should == "/#{project.path_with_namespace}" + status_code.should == 200 end step 'I get redirected to signin page where I sign in' do @@ -63,7 +63,7 @@ class Spinach::Features::ProjectRedirects < Spinach::FeatureSteps step 'I should be redirected to "Enterprise" page' do project = Project.find_by(name: 'Enterprise') - page.current_path.should == "/#{project.path_with_namespace}" - page.status_code.should == 200 + current_path.should == "/#{project.path_with_namespace}" + status_code.should == 200 end end |