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_outside_scope = false
|
||||||
@spec_files = []
|
@spec_files = []
|
||||||
use_config! if config?
|
use_config! if config?
|
||||||
|
|
||||||
@code_for_file = {}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def has_spec_outside_scope?
|
def has_spec_outside_scope?
|
||||||
@ -71,8 +69,6 @@ module Jasmine
|
|||||||
coffeescript_run = []
|
coffeescript_run = []
|
||||||
|
|
||||||
files.collect { |file|
|
files.collect { |file|
|
||||||
next @code_for_file[file] if @code_for_file[file]
|
|
||||||
|
|
||||||
coffeescript_run << file if (ext = File.extname(file)) == '.coffee'
|
coffeescript_run << file if (ext = File.extname(file)) == '.coffee'
|
||||||
|
|
||||||
output = []
|
output = []
|
||||||
@ -89,8 +85,6 @@ module Jasmine
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@code_for_file[file] = output if output.length == 1
|
|
||||||
|
|
||||||
output
|
output
|
||||||
}.flatten.reject(&:empty?)
|
}.flatten.reject(&:empty?)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user