From 30ce01c0178cf4e6e39c76cfad204dfbf9bfb3dd Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 7 Aug 2011 00:17:45 -0400 Subject: [PATCH] this caching is too dangerous --- lib/jasmine/files_list.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/jasmine/files_list.rb b/lib/jasmine/files_list.rb index 38b414a..ac3a151 100644 --- a/lib/jasmine/files_list.rb +++ b/lib/jasmine/files_list.rb @@ -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