diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-26 12:58:20 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-26 12:58:20 +0300 |
commit | fd338d67159e6dffaf54fd42fbeddb3b17e4d49f (patch) | |
tree | f334c299b131bcb32c2f73ab632ea5306e590b5c /features/steps/shared/markdown.rb | |
parent | fedacf52f8703c49b0bf96e971841edc2cc30655 (diff) | |
parent | de5e0e590fa4e75cb9d66398b902a8348a2c42dc (diff) | |
download | gitlab-ce-fd338d67159e6dffaf54fd42fbeddb3b17e4d49f.tar.gz |
Merge branch 'master' of github.com:gitlabhq/gitlabhq
Diffstat (limited to 'features/steps/shared/markdown.rb')
-rw-r--r-- | features/steps/shared/markdown.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |