this caching is too dangerous
This commit is contained in:
parent
bb92628716
commit
30ce01c017
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user