this caching is too dangerous

This commit is contained in:
John Bintz 2011-08-07 00:17:45 -04:00
parent bb92628716
commit 30ce01c017

View File

@ -34,8 +34,6 @@ module Jasmine
@spec_outside_scope = false
@spec_files = []
use_config! if config?
@code_for_file = {}
end
def has_spec_outside_scope?
@ -71,8 +69,6 @@ module Jasmine
coffeescript_run = []
files.collect { |file|
next @code_for_file[file] if @code_for_file[file]
coffeescript_run << file if (ext = File.extname(file)) == '.coffee'
output = []
@ -89,8 +85,6 @@ module Jasmine
end
end
@code_for_file[file] = output if output.length == 1
output
}.flatten.reject(&:empty?)
end