ZenTest 3.1.0 → 3.2.0
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 +16 -4
- data/Manifest.txt +13 -0
- data/README.txt +19 -46
- data/Rakefile +31 -14
- data/bin/rails_test_audit +80 -0
- data/bin/unit_diff +4 -6
- data/lib/autotest.rb +22 -10
- data/lib/rails_autotest.rb +67 -15
- data/lib/test/rails.rb +267 -0
- data/lib/test/rails/controller_test_case.rb +357 -0
- data/lib/test/rails/functional_test_case.rb +64 -0
- data/lib/test/rails/ivar_proxy.rb +31 -0
- data/lib/test/rails/rake_tasks.rb +49 -0
- data/lib/test/rails/test_case.rb +12 -0
- data/lib/test/rails/view_test_case.rb +431 -0
- data/lib/test/zentest_assertions.rb +46 -0
- data/lib/zentest.rb +48 -2
- data/test/data/normal/test/#test_photo.rb# +0 -0
- data/test/data/rails/app/views/route/index.rhtml +0 -0
- data/test/data/rails/test/controllers/route_controller_test.rb +0 -0
- data/test/data/rails/test/views/route_view_test.rb +0 -0
- data/test/test_autotest.rb +9 -5
- data/test/test_rails_autotest.rb +142 -49
- metadata +30 -13
- data/bin/ZenTest +0 -28
data/bin/ZenTest
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
#!/usr/local/bin/ruby -swI .
|
2
|
-
|
3
|
-
require 'zentest'
|
4
|
-
|
5
|
-
$TESTING = true # for ZenWeb and any other testing infrastructure code
|
6
|
-
|
7
|
-
if defined? $v then
|
8
|
-
puts "#{File.basename $0} v#{ZenTest::VERSION}"
|
9
|
-
exit 0
|
10
|
-
end
|
11
|
-
|
12
|
-
if defined? $h then
|
13
|
-
puts "usage: #{File.basename $0} [-h -v] test-and-implementation-files..."
|
14
|
-
puts " -h display this information"
|
15
|
-
puts " -v display version information"
|
16
|
-
puts " -r Reverse mapping (ClassTest instead of TestClass)"
|
17
|
-
puts " -e (Rapid XP) eval the code generated instead of printing it"
|
18
|
-
exit 0
|
19
|
-
end
|
20
|
-
|
21
|
-
code = ZenTest.fix(*ARGV)
|
22
|
-
if defined? $e then
|
23
|
-
require 'test/unit'
|
24
|
-
eval code
|
25
|
-
else
|
26
|
-
print code
|
27
|
-
end
|
28
|
-
|