lib/opal/rake_task.rb in opal-0.3.26 vs lib/opal/rake_task.rb in opal-0.3.27

- old
+ new

@@ -13,11 +13,11 @@ @name = File.basename(@project_dir) @dir = @project_dir @build_dir = 'build' @specs_dir = 'spec' - @files = Dir['lib/**/*.{rb,js,erb}'] + @files = Dir['lib/**/*.rb'] @dependencies = [] yield self if block_given? define_tasks @@ -65,12 +65,12 @@ end @dependencies.each { |dep| build_gem dep } end - desc "Run tests through phantomjs" + desc "Run specs in spec/index.html" task 'opal:test' do - runner = File.join(Opal.core_dir, 'opal-spec', 'runner.js') + runner = File.join Opal.core_dir, 'test_runner', 'runner.js' sh "phantomjs #{runner} spec/index.html" end desc "Build opal files, dependencies and specs" task :opal => %w(opal:build opal:dependencies opal:spec) \ No newline at end of file