Skip to content

Commit

Permalink
Fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields committed Dec 31, 2023
1 parent 79befcb commit 60cab11
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions test/sassc_rails_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,16 @@ def test_sass_asset_paths_work
assert_match %r{audio-url:\s*url\(/audios/rails.mp3\)}, css_output, 'audio-url:\s*url\(/audios/rails.mp3\)'
assert_match %r{font-path:\s*"/fonts/rails.ttf"}, css_output, 'font-path:\s*"/fonts/rails.ttf"'
assert_match %r{font-url:\s*url\(/fonts/rails.ttf\)}, css_output, 'font-url:\s*url\(/fonts/rails.ttf\)'
assert_match %r{font-url-with-query-hash:\s*url\(/fonts/rails.ttf\?#iefix\)}, css_output, 'font-url:\s*url\(/fonts/rails.ttf?#iefix\)'
assert_match %r{javascript-path:\s*"/javascripts/rails.js"}, css_output, 'javascript-path:\s*"/javascripts/rails.js"'
assert_match %r{javascript-url:\s*url\(/javascripts/rails.js\)}, css_output, 'javascript-url:\s*url\(/javascripts/rails.js\)'
assert_match %r{stylesheet-path:\s*"/stylesheets/rails.css"}, css_output, 'stylesheet-path:\s*"/stylesheets/rails.css"'
assert_match %r{stylesheet-url:\s*url\(/stylesheets/rails.css\)}, css_output, 'stylesheet-url:\s*url\(/stylesheets/rails.css\)'
assert_match %r{font-url-with-query-hash:\s*url\(/fonts/rails.ttf\?#iefix\)}, css_output,
'font-url:\s*url\(/fonts/rails.ttf?#iefix\)'
assert_match %r{javascript-path:\s*"/javascripts/rails.js"}, css_output,
'javascript-path:\s*"/javascripts/rails.js"'
assert_match %r{javascript-url:\s*url\(/javascripts/rails.js\)}, css_output,
'javascript-url:\s*url\(/javascripts/rails.js\)'
assert_match %r{stylesheet-path:\s*"/stylesheets/rails.css"}, css_output,
'stylesheet-path:\s*"/stylesheets/rails.css"'
assert_match %r{stylesheet-url:\s*url\(/stylesheets/rails.css\)}, css_output,
'stylesheet-url:\s*url\(/stylesheets/rails.css\)'

asset_data_url_regexp = /asset-data-url:\s*url\((.*?)\)/
assert_match asset_data_url_regexp, css_output, 'asset-data-url:\s*url\((.*?)\)'
Expand Down

0 comments on commit 60cab11

Please sign in to comment.