Sha256: e5cc4a2294d063e19450e3dd946dc8c73672cba0fbf231ecb1cefb2c39f1519c

Contents?: true

Size: 646 Bytes

Versions: 2

Compression:

Stored size: 646 Bytes

Contents

require 'test_helper'

class ClosureCompressorTest < Test::Unit::TestCase

  def setup
    Jammit.load_configuration('test/config/assets-closure.yml').reload!
    @compressor = Compressor.new
  end

  def teardown
    Jammit.load_configuration('test/config/assets.yml').reload!
  end

  def test_javascript_compression
    packed = @compressor.compress_js(glob('test/fixtures/src/test*.js'))
    assert packed == File.read('test/fixtures/jammed/test-closure.js')
  end

  def test_jst_compilation
    packed = @compressor.compile_jst(glob('test/fixtures/src/test*.jst'))
    assert packed == File.read('test/fixtures/jammed/test.jst')
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jammit-core-0.1.1 test/unit/test_closure_compressor.rb
jammit-core-0.1.0 test/unit/test_closure_compressor.rb