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/shared | |
parent | 1302dc8f0420dacec65ef1dcc955763c6c263cec (diff) |
Remove unnecessary page. from tests.
Diffstat (limited to 'features/steps/shared')
-rw-r--r-- | features/steps/shared/active_tab.rb | 6 | ||||
-rw-r--r-- | features/steps/shared/markdown.rb | 4 | ||||
-rw-r--r-- | features/steps/shared/paths.rb | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/features/steps/shared/active_tab.rb b/features/steps/shared/active_tab.rb index f4ef33cc7a4..f41b59a6f2b 100644 --- a/features/steps/shared/active_tab.rb +++ b/features/steps/shared/active_tab.rb @@ -2,15 +2,15 @@ module SharedActiveTab include Spinach::DSL def ensure_active_main_tab(content) - page.find('.main-nav li.active').should have_content(content) + find('.main-nav li.active').should have_content(content) end def ensure_active_sub_tab(content) - page.find('div.content ul.nav-tabs li.active').should have_content(content) + find('div.content ul.nav-tabs li.active').should have_content(content) end def ensure_active_sub_nav(content) - page.find('div.content ul.nav-stacked-menu li.active').should have_content(content) + find('div.content ul.nav-stacked-menu li.active').should have_content(content) end step 'no other main tabs should be active' do diff --git a/features/steps/shared/markdown.rb b/features/steps/shared/markdown.rb index 782f3f0920b..092f2fceb57 100644 --- a/features/steps/shared/markdown.rb +++ b/features/steps/shared/markdown.rb @@ -2,8 +2,8 @@ module SharedMarkdown include Spinach::DSL def header_should_have_correct_id_and_link(level, text, id, parent = ".wiki") - page.find(:css, "#{parent} h#{level}##{id}").text.should == text - page.find(:css, "#{parent} h#{level}##{id} > :last-child")[:href].should =~ /##{id}$/ + find(:css, "#{parent} h#{level}##{id}").text.should == text + find(:css, "#{parent} h#{level}##{id} > :last-child")[:href].should =~ /##{id}$/ end step 'Header "Description header" should have correct id and link' do diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb index ed0c623d1dc..babbef33ec4 100644 --- a/features/steps/shared/paths.rb +++ b/features/steps/shared/paths.rb @@ -419,6 +419,6 @@ module SharedPaths # ---------------------------------------- step 'page status code should be 404' do - page.status_code.should == 404 + status_code.should == 404 end end |