removed dependency on v8 in favor of bin/cs

This commit is contained in:
Jeremy Ashkenas
2009-12-24 22:08:32 -08:00
parent 2f35bba083
commit 6865f5be92
9 changed files with 3 additions and 127 deletions

View File

@@ -5,17 +5,11 @@ class ExecutionTest < Test::Unit::TestCase
NO_WARNINGS = /\A(0 error\(s\), 0 warning\(s\)\n)+\Z/
def test_execution_of_coffeescript
`bin/coffee-script test/fixtures/execution/*.cs`
sources = Dir['test/fixtures/execution/*.js'].map {|f| File.expand_path(f) }
starting_place = File.expand_path(Dir.pwd)
Dir.chdir('/Users/jashkenas/Desktop/Beauty/Code/v8')
sources.each do |source|
suceeded = `./shell #{source}`.chomp.to_sym == :true
Dir['test/fixtures/execution/*.cs'].each do |source|
suceeded = `bin/cs #{source}`.chomp.to_sym == :true
puts "failed: #{source}" unless suceeded
assert suceeded
end
ensure
Dir.chdir(starting_place)
end
def test_lintless_coffeescript