mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
15 lines
419 B
Ruby
15 lines
419 B
Ruby
|
|
require File.join(File.dirname(__FILE__), '../test_helper.rb')
|
||
|
|
|
||
|
|
class JSBundleTest < Test::Unit::TestCase
|
||
|
|
def test__bundle_js_files__bypass_bundle__should_bypass
|
||
|
|
BundleFu.bundle_js_files
|
||
|
|
end
|
||
|
|
|
||
|
|
def test__bundle_js_files__should_include_contents
|
||
|
|
bundled_js = BundleFu.bundle_js_files(["/javascripts/js_1.js"])
|
||
|
|
# puts bundled_js
|
||
|
|
# function js_1
|
||
|
|
assert_match("function js_1", bundled_js)
|
||
|
|
end
|
||
|
|
end
|