sprout 1.0.18.pre → 1.0.19.pre
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- data/lib/sprout/test/sprout_test_case.rb +0 -4
- data/lib/sprout/version.rb +1 -1
- data/test/unit/sprout_test_helper.rb +12 -0
- metadata +2 -2
@@ -22,9 +22,6 @@ module SproutTestCase # :nodoc:[all]
|
|
22
22
|
def teardown
|
23
23
|
super
|
24
24
|
clear_tasks
|
25
|
-
Sprout::Executable.clear_entities!
|
26
|
-
Sprout::Library.clear_entities!
|
27
|
-
Sprout::Generator.clear_entities!
|
28
25
|
|
29
26
|
remove_file @temp_path
|
30
27
|
remove_file @temp_cache
|
@@ -36,7 +33,6 @@ module SproutTestCase # :nodoc:[all]
|
|
36
33
|
puts "[WARNING] >> SproutTestCase changing dir from #{Dir.pwd} back to: #{@start_path} - Did you mean to leave your working directory in a new place?"
|
37
34
|
Dir.chdir @start_path
|
38
35
|
end
|
39
|
-
|
40
36
|
end
|
41
37
|
|
42
38
|
def temp_path
|
data/lib/sprout/version.rb
CHANGED
@@ -16,3 +16,15 @@ require 'unit/fake_process_runner'
|
|
16
16
|
require 'unit/fake_executable_task'
|
17
17
|
require 'sprout/test/sprout_test_case'
|
18
18
|
|
19
|
+
class Test::Unit::TestCase
|
20
|
+
|
21
|
+
# Only clear registrations in the Sprout core
|
22
|
+
# project - not in child projects
|
23
|
+
def teardown
|
24
|
+
super
|
25
|
+
Sprout::Executable.clear_entities!
|
26
|
+
Sprout::Library.clear_entities!
|
27
|
+
Sprout::Generator.clear_entities!
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|