Commit cb079c82 authored by Robert Speicher's avatar Robert Speicher

Fix Markdown feature spec

parent fdff815a
......@@ -62,7 +62,7 @@ describe 'GitLab Markdown' do
# Given a header ID, goes to that element's parent (the header), then to its
# second sibling (the body).
def get_section(id)
@doc.at_css("##{id}").parent.next.next
@doc.at_css("##{id}").parent.next_element
end
# it 'writes to a file' do
......@@ -189,7 +189,7 @@ describe 'GitLab Markdown' do
end
describe 'AutolinkFilter' do
let(:list) { get_section('autolinkfilter').parent.search('ul') }
let(:list) { get_section('autolinkfilter').next_element }
def item(index)
list.at_css("li:nth-child(#{index})")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment