Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint a random file #3742

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading