Permalink
Browse files

Output test files into test_assets/app-tests.js

  • Loading branch information...
pangratz committed Jul 21, 2012
1 parent bdf5c4c commit c85030fb0f3ee072c53e2c82eda01533798902d9
Showing with 14 additions and 9 deletions.
  1. +2 −0 .gitignore
  2. +11 −8 Assetfile
  3. +1 −1 tests/index.html
@@ -1,3 +1,5 @@
.DS_Store
tmp/
assets/
test_assets/
@@ -102,14 +102,6 @@ input 'app' do
concat 'app.js'
end
match 'tests/**/*.js' do
filter LoaderFilter,
:module_id_generator => proc { |input|
input.path.sub(/^lib\//, "#{APPNAME}/").sub(/\.js$/, '')
}
concat 'app-tests.js'
end
match 'css/**/*.css' do
if ENV['RAKEP_MODE'] == 'production'
yui_css
@@ -132,4 +124,15 @@ input 'app' do
end
end
output 'test_assets'
input 'app' do
match 'tests/**/*.js' do
filter LoaderFilter,
:module_id_generator => proc { |input|
input.path.sub(/^lib\//, "#{APPNAME}/").sub(/\.js$/, '')
}
concat 'app-tests.js'
end
end
# vim: filetype=ruby
@@ -11,7 +11,7 @@
<div id="qunit-fixture">test markup</div>
<script src="../assets/loader.js"></script>
<script src="../assets/app.js"></script>
<script src="../assets/app-tests.js"></script>
<script src="../test_assets/app-tests.js"></script>
<script>
(function(QUnit) {
// Hack QUnit to not suck for Ember objects

0 comments on commit c85030f

Please sign in to comment.