Permalink
Browse files

Added test for no-rewrite-relative-paths.

  • Loading branch information...
dblock committed Feb 22, 2012
1 parent 287bc4d commit cea2b4e34213b547dd0480e33aa7bfbd04fde1e4
@@ -0,0 +1,13 @@
+javascript_compressor: yui
+embed_assets: on
+rewrite_relative_paths: off
+
+javascripts:
+ js_test:
+ - fixtures/src/*.js
+ jst_test:
+ - fixtures/src/*.jst
+
+stylesheets:
+ css_test:
+ - fixtures/src/*.css

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -72,4 +72,11 @@ def test_environment_specific_configuration
ENV['RAILS_ENV'] = 'test'
end
+ def test_no_rewrite_relative_paths
+ Jammit.load_configuration('test/config/assets-no-rewrite-relative-paths.yml')
+ assert !Jammit.rewrite_relative_paths
+ packed = @compressor.compress_css(glob('test/fixtures/src/*.css'))
+ assert_equal packed, File.read('test/fixtures/jammed/css_test-no-rewrite-relative-paths.css')
+ end
+
end

0 comments on commit cea2b4e

Please sign in to comment.