test/sprockets_rails_test.rb in bootstrap-sass-3.3.1.0 vs test/sprockets_rails_test.rb in bootstrap-sass-3.3.2.0
- old
+ new
@@ -14,10 +14,10 @@
end
end
assert compiled, 'Could not precompile assets'
Dir.glob(File.join(root, 'public', 'assets', 'app*.{css,js}')) do |path|
File.open(path, 'r') do |f|
- f.read.scan /url\("?[^"]+\.(?:jpg|png|eot|woff|ttf|svg)[^"]*"?\)/ do |m|
+ f.read.scan /url\("?[^"]+\.(?:jpg|png|eot|woff2?|ttf|svg)[^"]*"?\)/ do |m|
assert_match /-[0-9a-f]{12,}\./, m
end
end
end
ensure