Skip to content

Commit

Permalink
Refs #36849 - Update tests for documentation_url
Browse files Browse the repository at this point in the history
  • Loading branch information
ofedoren authored and ekohl committed Jan 12, 2024
1 parent c109691 commit 4259abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/helpers/application_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ def test_generate_link_for
end

test '#documentation_url and new docs page' do
url = documentation_url('TestSection', { type: 'plugin_manual', name: 'foreman_my_plugin', version: '1.2' })
url = documentation_url('TestSection', type: 'plugin_manual', name: 'foreman_my_plugin', version: '1.2')

assert_match %r{links/plugin_manual/TestSection\?name=foreman_my_plugin&version=1\.2}, url
end

test '#documentation_url and new docs page' do
url = documentation_url('TestSection', { type: 'docs', chapter: 'test_chapter' })
url = documentation_url('TestSection', type: 'docs', chapter: 'test_chapter')

assert_match %r{links/docs/TestSection\?chapter=test_chapter}, url
end
Expand Down

0 comments on commit 4259abb

Please sign in to comment.