Permalink
Browse files

fix test building

  • Loading branch information...
1 parent 7269c96 commit 7c0f4d1e9b6a86692e12906ebf0ebebecf377f1e @josh josh committed May 31, 2010
Showing with 5 additions and 4 deletions.
  1. +5 −4 Rakefile
View
@@ -65,18 +65,19 @@ end
# Tests
-file 'test/unit/tmp' => Dir['test/unit/*.js'] + [:unittest_js, :dist] do
+file 'test/unit/tmp/tests' => Dir['test/unit/*.js'] + [:unittest_js, :dist] do
+ FileUtils.mkdir_p File.dirname('test/unit/tmp/tests')
+
builder = UnittestJS::Builder::SuiteBuilder.new({
:input_dir => "#{WYSIHAT_ROOT}/test/unit",
:assets_dir => "#{WYSIHAT_ROOT}/dist"
})
- selected_tests = (ENV['TESTS'] || '').split(',')
- builder.collect(*selected_tests)
+ builder.collect
builder.render
end
desc "Builds the distribution, runs the JavaScript unit tests and collects their results."
-task :test => 'test/unit/tmp'
+task :test => 'test/unit/tmp/tests'
# Vendored libs

0 comments on commit 7c0f4d1

Please sign in to comment.