ZenTest 3.5.1 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +8 -0
- data/lib/autotest.rb +1 -1
- data/lib/autotest/redgreen.rb +3 -6
- data/lib/test/rails/functional_test_case.rb +3 -0
- data/lib/test/rails/test_case.rb +4 -0
- data/lib/zentest.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
*** 3.5.2
|
2
|
+
|
3
|
+
+ 4 bug fixes:
|
4
|
+
+ Patch up Rails fixture defaults for Test::Rails::TestCase.
|
5
|
+
+ Session now properly hooked up to controllers.
|
6
|
+
+ ruby 1.8.6 has a bug on 'raise Interrupt' with no args. Fixed on both sides.
|
7
|
+
+ Fixed redgreen to work with new getc/putc-based output. (from Finn Smith)
|
8
|
+
|
1
9
|
*** 3.5.1 / 2007-04-17
|
2
10
|
|
3
11
|
+ 4 bug fixes:
|
data/lib/autotest.rb
CHANGED
data/lib/autotest/redgreen.rb
CHANGED
@@ -5,12 +5,9 @@ module Autotest::RedGreen
|
|
5
5
|
BAR = "=" * 80
|
6
6
|
|
7
7
|
Autotest.add_hook :ran_command do |at|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
code = ($1 != "0" or $2 != "0") ? 31 : 32
|
12
|
-
"\e[#{code}m#{BAR}\n#{match}\e[0m\n\n"
|
13
|
-
}
|
8
|
+
if at.results.last.match(/^.* (\d+) failures, (\d+) errors$/)
|
9
|
+
code = ($1 != "0" or $2 != "0") ? 31 : 32
|
10
|
+
puts "\e[#{code}m#{BAR}\e[0m\n\n"
|
14
11
|
end
|
15
12
|
end
|
16
13
|
end
|
@@ -38,6 +38,9 @@ class Test::Rails::FunctionalTestCase < Test::Rails::TestCase
|
|
38
38
|
@request = ActionController::TestRequest.new
|
39
39
|
@request.session = @session
|
40
40
|
|
41
|
+
# HACK There's probably an official way to do this
|
42
|
+
@controller.instance_variable_set :@_session, @request.session
|
43
|
+
|
41
44
|
@response = ActionController::TestResponse.new
|
42
45
|
|
43
46
|
setup_extra if respond_to? :setup_extra
|
data/lib/test/rails/test_case.rb
CHANGED
data/lib/zentest.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0.9
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ZenTest
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 3.5.
|
7
|
-
date: 2007-04-
|
6
|
+
version: 3.5.2
|
7
|
+
date: 2007-04-30 00:00:00 -07:00
|
8
8
|
summary: "ZenTest provides 4 different tools and 1 library: zentest, unit_diff, autotest, multiruby, and Test::Rails."
|
9
9
|
require_paths:
|
10
10
|
- lib
|