Commit bb786527 authored by Douwe Maan's avatar Douwe Maan

Use new renamed markup method

parent b6566277
- blob = viewer.blob - blob = viewer.blob
.file-content.wiki .file-content.wiki
= render_markup(blob.name, blob.data) = markup(blob.name, blob.data)
...@@ -479,6 +479,7 @@ describe 'Copy as GFM', feature: true, js: true do ...@@ -479,6 +479,7 @@ describe 'Copy as GFM', feature: true, js: true do
context 'from a blob' do context 'from a blob' do
before do before do
visit namespace_project_blob_path(project.namespace, project, File.join('master', 'files/ruby/popen.rb')) visit namespace_project_blob_path(project.namespace, project, File.join('master', 'files/ruby/popen.rb'))
wait_for_ajax
end end
context 'selecting one word of text' do context 'selecting one word of text' do
...@@ -520,6 +521,7 @@ describe 'Copy as GFM', feature: true, js: true do ...@@ -520,6 +521,7 @@ describe 'Copy as GFM', feature: true, js: true do
context 'from a GFM code block' do context 'from a GFM code block' do
before do before do
visit namespace_project_blob_path(project.namespace, project, File.join('markdown', 'doc/api/users.md')) visit namespace_project_blob_path(project.namespace, project, File.join('markdown', 'doc/api/users.md'))
wait_for_ajax
end end
context 'selecting one word of text' do context 'selecting one word of text' do
......
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