test/non_existent_test.rb in sinatra-assetpack-0.1.7 vs test/non_existent_test.rb in sinatra-assetpack-0.2.0
- old
+ new
@@ -40,6 +40,12 @@
test "non-existent files in js minifier" do
get '/script.min.js'
assert body.include?('Spin spin sugar')
end
+
+ test "non-existant asset hosts" do
+ file = File.join(app.root, 'app/js/hello.js')
+
+ assert_equal(app.root + '/app/js/hello.js', Sinatra::AssetPack::HtmlHelpers.get_file_uri(file, App.assets))
+ end
end