Skip to content

Commit 2ba4592

Browse files
committed
removing the annoying Java-isnt-isntalled test.
1 parent 0a67473 commit 2ba4592

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

test/unit/test_configuration.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,6 @@ def test_loading_a_nonexistent_file
1717
end
1818
end
1919

20-
def test_loading_a_nonexistent_java
21-
Jammit.instance_variable_set('@checked_java_version', false)
22-
Jammit.load_configuration('test/config/assets-no-java.yml')
23-
assert !Jammit.compress_assets
24-
@compressor = Compressor.new
25-
# Should not compress js.
26-
packed = @compressor.compress_js(glob('test/fixtures/src/*.js'))
27-
assert packed == File.read('test/fixtures/jammed/js_test-uncompressed.js')
28-
# Nothing should change with jst.
29-
packed = @compressor.compile_jst(glob('test/fixtures/src/*.jst'))
30-
assert packed == File.read('test/fixtures/jammed/jst_test.js')
31-
packed = @compressor.compress_css(glob('test/fixtures/src/*.css'))
32-
assert packed == File.open('test/fixtures/jammed/css_test-uncompressed.css', 'rb') {|f| f.read }
33-
end
34-
3520
def test_disabled_compression
3621
Jammit.load_configuration('test/config/assets-compression-disabled.yml')
3722
assert !Jammit.compress_assets

0 commit comments

Comments
 (0)