diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-06 20:43:12 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-06 20:43:12 -0400 |
commit | cb079c8208b386425d2d94377a20804a53df6489 (patch) | |
tree | c323ae7d5226d35d33797592b3a3bbe79fada5a3 /spec/features/markdown_spec.rb | |
parent | fdff815a4cddd9e956d1bf4cc8f01eeb3384b9ee (diff) | |
download | gitlab-ce-cb079c8208b386425d2d94377a20804a53df6489.tar.gz |
Fix Markdown feature spec
Diffstat (limited to 'spec/features/markdown_spec.rb')
-rw-r--r-- | spec/features/markdown_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/markdown_spec.rb b/spec/features/markdown_spec.rb index 3fe593c47b4..57d01236505 100644 --- a/spec/features/markdown_spec.rb +++ b/spec/features/markdown_spec.rb @@ -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})") |