Skip to content

Commit

Permalink
Merge pull request #124 from xmera-circle/bug-fix/missing-common-mark…
Browse files Browse the repository at this point in the history
…-support

Bug fix/missing common mark support
  • Loading branch information
mikitex70 authored Jan 28, 2023
2 parents d452b08 + 36a51cd commit 66e7a41
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/redmine_drawio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
require File.expand_path('../redmine_drawio/patches/rbpdf_patch', __FILE__)

# Helpers
require File.expand_path('../redmine_drawio/helpers/common_mark_helper', __FILE__)
require File.expand_path('../redmine_drawio/helpers/drawio_dmsf_helper', __FILE__)
require File.expand_path('../redmine_drawio/helpers/drawio_settings_helper', __FILE__)
require File.expand_path('../redmine_drawio/helpers/textile_helper', __FILE__)
Expand Down
4 changes: 2 additions & 2 deletions test/integration/macro_dialog_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ def teardown
end

test 'render macro diaglog without svg' do
with_settings(redmine_drawio({ drawio_svg_enabled: false })) do
with_settings(redmine_drawio(**{ drawio_svg_enabled: false })) do
render_marcro_dialog
assert_select 'input[value=?]', 'svg', 0
end
end

test 'render macro diaglog with svg' do
with_settings(redmine_drawio({ drawio_svg_enabled: true })) do
with_settings(redmine_drawio(**{ drawio_svg_enabled: true })) do
render_marcro_dialog
assert_select 'input[value=?]', 'svg'
end
Expand Down
4 changes: 2 additions & 2 deletions test/unit/drawio_settings_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ def teardown
end

def test_svg_disabled
with_settings(redmine_drawio({ drawio_svg_enabled: false })) do
with_settings(redmine_drawio(**{ drawio_svg_enabled: false })) do
assert_not svg_enabled?
end
end

def test_svg_enabled
with_settings(redmine_drawio({ drawio_svg_enabled: true })) do
with_settings(redmine_drawio(**{ drawio_svg_enabled: true })) do
assert svg_enabled?
end
end
Expand Down

0 comments on commit 66e7a41

Please sign in to comment.