forked from timcharper/bundle-fu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://bundle-fu.googlecode.com/svn/trunk@107 1db77ec0-6337-0410-9320-454da9aca44f
- Loading branch information
timcharper
committed
Nov 18, 2007
1 parent
93ab292
commit 015dd3a
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
require File.join(File.dirname(__FILE__), '../test_helper.rb') | ||
|
||
class JSBundleTest < Test::Unit::TestCase | ||
def setup | ||
@bundle_fu = BundleFu.new({}) | ||
end | ||
|
||
def test__bundle_js_files__bypass_bundle__should_bypass | ||
BundleFu.bundle_js_files | ||
@bundle_fu.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 | ||
bundled_js = @bundle_fu.bundle_js_files(["/javascripts/js_1.js"]) | ||
assert_match("function js_1", bundled_js) | ||
end | ||
end |