aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test
Commit message (Collapse)AuthorAgeFilesLines
* * lib/test/unit/assertions.rb (assert_equal): use Time#subsec if nsecakr2009-09-291-2/+10
| | | | | | | is not enough to distinguish arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/testcase.rb (Test::Unit): removes silly TestCasenobu2009-08-061-0/+3
| | | | | | | class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): expands paths beforenobu2009-08-041-3/+3
| | | | | | | requiring. [ruby-dev:39012] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb: don't define assert_not_* if alreadyakr2009-02-271-2/+4
| | | | | | | overridden. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (Test::Unit::Assertions): aliasesnobu2009-02-151-0/+4
| | | | | | | assert_not_ methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_equal): show class in failureakr2009-01-311-0/+4
| | | | | | | message if meaningful. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rbakr2009-01-301-1/+1
| | | | | | | | (Test::Unit::Assertions#assert_nothing_raised): supress warning. [ruby-core:21312] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_respond_to): gets rid ofnobu2009-01-301-0/+5
| | | | | | | overcounting. [ruby-dev:37703] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_nothing_raised): removes thenobu2009-01-121-3/+9
| | | | | | | current trace to get rid of an issue of MiniTest::Unit#location. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_no_match): don't count up as twoakr2009-01-071-0/+1
| | | | | | | assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_equal): show small differencesakr2008-12-231-1/+5
| | | | | | | for Regexp and Float. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_nothing_raised): incrementakr2008-12-221-0/+1
| | | | | | | assertion count. [ruby-dev:37480] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): sorry, fixed wrong commit.usa2008-12-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): ALT_SEPARATOR support.usa2008-12-161-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb: extracted from lib/test/unit.rb.akr2008-12-113-112/+124
| | | | | | | | lib/test/unit/testcase.rb: ditto. at asakusa.rb. [ruby-core:20014] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: sorry, removed debug code.usa2008-11-041-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): now can specify ``-xname''usa2008-11-041-5/+6
| | | | | | | | instead of ``-x name''. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (assert_nothing_raised): raise with backtrace.nobu2008-10-211-3/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (assert_nothing_raised): set backtrace.akr2008-10-211-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (Test::Unit.setup_argv): call given block forakr2008-10-191-18/+20
| | | | | | | | | | | | filtering files. * test/runner.rb: search srcdir/test/arg, srcdir/arg. * bin/testrb: show usage if no files given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (assert_nothing_thrown): don't intern.akr2008-10-181-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (assert_nothing_thrown): implemented.akr2008-10-181-2/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb: sort the order of executing tests.mame2008-10-161-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (assert_equal): avoid incompatible characterakr2008-10-161-0/+10
| | | | | | | encodings error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit.rb (assert_equal): failure message changed.akr2008-10-161-1/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit: removed test/unit.akr2008-10-1622-3578/+125
| | | | | | | | | | | | * lib/test/unit.rb: new compatibility layer using minitest. * bin/testrb: use above. * test/runner.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixed missing test/unit.rb, bad svn merge. Rolled back test/runner.rbryan2008-10-101-0/+280
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Restored test/unitryan2008-10-1021-0/+3307
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Removing miniunitryan2008-10-105-158/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb: assert_nothing_thrown, naruse2008-10-081-16/+27
| | | | | | | assert_raise, assert_not_equal, assert_no_match, assert_not_nil, assert_not_same are coming back as alias. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised): matz2008-10-061-1/+1
| | | | | | should take optional message argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/mini/test_mini_test.rb: recovered. It had been temporarily removed at ↵yugui2008-10-0423-3569/+129
| | | | | | | | | | | | | r19645. * test/mini/test_mini_mock.rb: ditto. * test/mini/test_mini_spec.rb: ditto. * lib/test/**/*: replaced by miniunit. miniunit had been temporarily reverted at r19643 but now recovred. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Reverts the changes of lib/test/unit.rb in r19502 and r19501.yugui2008-09-3022-0/+3587
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Reverts the changes of lib/test/unit/* in r19543, r19534 and r19503.yugui2008-09-305-147/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Not a typo. The name is better plural. Better English and more consistent ↵ryan2008-09-251-1/+1
| | | | | | with the other assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mini/test.rb (Mini::Assertions#assert_raise): fixed typo.nobu2008-09-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added miniunit 1.3.0ryan2008-09-235-0/+147
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* committed one dir too deep. THIS removes the rest of test/unitryan2008-09-231-280/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Removed test/unitryan2008-09-2321-3307/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector/objectspace.rbkou2008-07-061-1/+1
| | | | | | | (Test::Unit::Collector::ObjectSpace::NAME): fix a typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/testcase.rb: collect decendants ofakr2008-07-044-11/+25
| | | | | | | | | | | | | | | | Test::Unit::TestCase using inherited. * lib/test/unit/autorunner.rb: don't use ObjectSpace.each_object. * lib/test/unit/collector/dir.rb: ditto. * lib/test/unit/collector/objectspace.rb: ditto. [ruby-core:17126] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/ui/console/testrunner.rb: prevent destructive modification ↵mame2008-07-011-4/+2
| | | | | | | | | | | | | | | to $0. * test/rubygems/gemutilities.rb (build_rake_in): move from test_gem_ext_rake_builder.rb. * test/rubygems/test_gem_ext_rake_builder.rb: ditto. * test/rubygems/test_gem_installer.rb: override Gem.ruby and ENV["rake"]. * test/rubygems/test_gem_uninstaller.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector/dir.rb (recursive_collect): r15662 reverted.nobu2008-06-301-2/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/inlinetest.rb (InlineTest.in_progname): workaround for frozennobu2008-06-271-2/+5
| | | | | | | | | $0. [ruby-dev:35261] * lib/test/unit/ui/console/testrunner.rb (TestRunner#finished): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Applied Laurent's patch to testcase.rb to fix symbol method namesryan2008-03-211-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector/dir.rb (recursive_collect): do not alwaysnobu2008-03-011-2/+3
| | | | | | | include all test_*.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/runner.rb, bootstraptest/test_method.rb, enc/depend,naruse2008-02-121-1/+1
| | | | | | | | instruby.rb, lib/mkmf.rb, lib/test/unit/util/procwrapper.rb, mkconfig.rb, sample/test.rb, template/vm.inc.tmpl, test/ruby/test_stringchar.rb: fixes arround String#gsub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Fix variable name.gotoyuzo2007-12-281-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert_throws):gotoyuzo2007-12-281-11/+11
| | | | | | | | | | | throw won't raise NameError nor ThreadError but ArgumentError on 1.9. (Test::Unit::Assertions#assert_not_throws): ditto. * test/testunit/test_assertions.rb: add assertions for throwing some objects other than Symbol. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e