diff options
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 |