require "test_helper" class TestJavaScriptMerger < Test::Unit::TestCase def setup @file_merger = Juicer::Merger::JavaScriptMerger.new Juicer::Test::FileSetup.new.create end def teardown file = path('test_out.js') File.delete(file) if File.exists?(file) end def test_init Juicer::Merger::JavaScriptMerger.publicize_methods do assert_equal Juicer::JavaScriptDependencyResolver, @file_merger.dependency_resolver.class end end def test_merge Juicer::Merger::JavaScriptMerger.publicize_methods do a_content = <