Skip to content

Commit

Permalink
Unit test to accept filenames with optional # suffix
Browse files Browse the repository at this point in the history
Multiple icons can be stored in a single .svg file, with #... denoting the
respective icon.
  • Loading branch information
mmd-osm committed Oct 27, 2024
1 parent b8fdb69 commit 6459223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers/browse_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_icon_tags

def test_svg_files_valid
BROWSE_IMAGE.each_value do |value|
assert_path_exists "app/assets/images/browse/#{value[:image]}"
assert_path_exists "app/assets/images/browse/#{value[:image].split('#').first}"
end
end

Expand Down

0 comments on commit 6459223

Please sign in to comment.