lib/sprout/test/sprout_test_case.rb in sprout-1.0.18.pre vs lib/sprout/test/sprout_test_case.rb in sprout-1.0.19.pre
- old
+ new
@@ -20,13 +20,10 @@
end
def teardown
super
clear_tasks
- Sprout::Executable.clear_entities!
- Sprout::Library.clear_entities!
- Sprout::Generator.clear_entities!
remove_file @temp_path
remove_file @temp_cache
@temp_path = nil
@@ -34,10 +31,9 @@
if(@start_path && Dir.pwd != @start_path)
puts "[WARNING] >> SproutTestCase changing dir from #{Dir.pwd} back to: #{@start_path} - Did you mean to leave your working directory in a new place?"
Dir.chdir @start_path
end
-
end
def temp_path
caller_file = Sprout.file_from_caller caller.first
@temp_path ||= make_temp_folder File.dirname(caller_file)