Skip to content

Commit

Permalink
lint a random file (#3742)
Browse files Browse the repository at this point in the history
  • Loading branch information
osc-bot authored Aug 22, 2024
1 parent 4b09edb commit ede4dd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/dashboard/test/helpers/application_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def expected_js_paths(js_file_config, type: '')
end
end

test "icon_tag should should render icon tag for known icon schemas" do
test 'icon_tag should should render icon tag for known icon schemas' do
@user_configuration = stub({ public_url: Pathname.new('/public') })
['fa', 'fas', 'far', 'fab', 'fal'].each do |icon_schema|
image_uri = URI("#{icon_schema}://icon_name")
Expand All @@ -128,7 +128,7 @@ def expected_js_paths(js_file_config, type: '')
end
end

test "icon_tag should should render image tag prefixing relative_url_root if image URI does not start with public_url" do
test 'icon_tag should should render image tag prefixing relative_url_root if image URI does not start with public_url' do
@user_configuration = stub({ public_url: Pathname.new('/public') })
config.stubs(:relative_url_root).returns('/prefix')
image_uri = URI('/path/to/image.png')
Expand All @@ -140,7 +140,7 @@ def expected_js_paths(js_file_config, type: '')
assert_equal '/prefix/path/to/image.png', image_html['src']
end

test "icon_tag should should render image tag without prefixing relative_url_root if image URI starts with public_url" do
test 'icon_tag should should render image tag without prefixing relative_url_root if image URI starts with public_url' do
@user_configuration = stub({ public_url: Pathname.new('/public') })
config.stubs(:relative_url_root).returns('/prefix')
image_uri = URI('/public/path/image.png')
Expand Down

0 comments on commit ede4dd9

Please sign in to comment.