aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing
Commit message (Collapse)AuthorAgeFilesLines
* nodoc AS::Testing::ConstantLookup::ClassMethods [ci skip]Carlos Duclos2012-12-011-1/+1
|
* nodoc AS::Testing::Pending because is deprecated [ci skip]Carlos Duclos2012-12-011-2/+2
|
* Properly deprecate #pending from AS::TestCaseCarlos Antonio da Silva2012-11-181-8/+2
| | | | Check https://github.com/rails/rails/pull/4575#issuecomment-5765575.
* Revert "Merge pull request #4575 from carlosantoniodasilva/remove-test-pending"Carlos Antonio da Silva2012-11-181-0/+20
| | | | | | | | | This reverts commit 1620df78dff527b4fa3f7b204fa05d1b630aae17, reversing changes made to 2d000328dfc0d4b297fb4bdcebc9af6c2fb559dc. Conflicts: activesupport/CHANGELOG.md activesupport/lib/active_support/test_case.rb
* Simplify code by taking advantage of latest mocha (v0.13.0).James Mead2012-11-121-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This only works with mocha v0.13.0 or later. Note that this also fixes a few subtle bugs present in the current implementation :- * Mocha was raising a `MiniTest::Assertion` instead of a `Mocha::ExpectationError` as intended. The latter is not recognized by MiniTest as an assertion failure and so it is recorded as a test *error*, not a test *failure* as it ought to. This leads to potentially confusing output in the test results. * Mocha verification should happen as part of the test. The verification of expectations is equivalent to a set of assertions. These assertions should happen as *part of* the test so that they have a chance to cause the test to fail, and not just as part of the teardown. Also if an assertion fails during the test, then there is no need to verify expectations, because only the first assertion failure is normally reported and all subsequent bets are off. * Expectation verification should be counted as an assertion. Mocha cannot record each expectation verification as an assertion, because we weren't passing in an assertion counter to `#mocha_verify`.
* mocha_standalone is now deprecated. Switch to mocha/api.Jeremy Kemper2012-11-051-1/+1
|
* Remove AS::Concern extension from Testing::TaggedLoggingCarlos Antonio da Silva2012-11-051-4/+0
|
* some ruby interpreters don't have ruby-prof so just skip the testsAaron Patterson2012-10-181-1/+1
| | | | rather than exiting the process.
* Tests tag the Rails log with the current test class and test caseJeremy Kemper2012-09-261-0/+30
|
* Add missing inflector dependencyMike Moore2012-09-251-3/+2
|
* Create ActiveSupport::Testing::ConstantLookupMike Moore2012-09-241-0/+53
| | | | | AS::TC::ConstantLookup walks the test's name to find the constant it is describing. This additional lookup logic is needed to better support minitest's spec DSL.
* update AS/notifications and AS/testing docs [ci skip]Francesco Rodriguez2012-09-142-7/+9
|
* deprecate `describe` without a block.Aaron Patterson2012-07-091-22/+0
| | | | | minitest/spec provides `describe`, so deprecate the rails version and have people use the superclass version
* we still need `describe` as the implementation differs from minitestAaron Patterson2012-07-081-0/+22
|
* minitest provides "it" and "describe"Aaron Patterson2012-07-081-40/+0
| | | | Remove rails implementation of describe, alias "test" to "it"
* Kill not used constant since removal of runner methodCarlos Antonio da Silva2012-07-031-9/+0
| | | | Runner method was removed in ada571bfcdbad669ae43a4dd18277ef227680a0b.
* remove the runner method copied from minitestAaron Patterson2012-07-031-20/+7
|
* hook mocha in through m/t before_setup, after_teardown hooksAaron Patterson2012-07-032-7/+22
|
* add :nodoc: to internal implementations [ci skip]Francesco Rodriguez2012-06-222-2/+2
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-06-221-23/+34
|\
| * fixes a few mistakes in api docs [ci skip]Vijay Dev2012-06-221-1/+1
| |
| * update AS::Testing::Assertions docsFrancesco Rodriguez2012-06-191-21/+32
| |
| * fix typo [ci skip]Francesco Rodriguez2012-06-191-2/+2
| |
* | Run the logger tests in isolationRafael Mendonça França2012-06-191-1/+1
| |
* | CORES needs to be a integerRafael Mendonça França2012-06-191-1/+1
| |
* | run railties tests in parallel, default to 2 coresAaron Patterson2012-06-191-0/+39
|/
* Eliminate dependency on Rails::VERSION::STRINGAndrew White2012-06-051-18/+23
| | | | | | To facilitate the use of ActiveSupport::Testing::Performance outside of a Rails application conditionally check for the presence of Rails::VERSION::STRING before including it in the environment string.
* Reduce warning messages when running Active Support testsAndrew White2012-05-311-0/+5
| | | | Eliminate the warnings generated by redefining methods and constants.
* Merge pull request #6525 from freerange/minitest-passthrough-exceptionsJosé Valim2012-05-291-0/+12
|\ | | | | Exceptions like Interrupt & NoMemoryError should not be rescued in tests.
| * Avoid dependency on MiniTest::Unit::TestCase::PASSTHROUGH_EXCEPTIONS.James Mead2012-05-291-2/+10
| |
| * Exceptions like Interrupt should not be rescued.James Mead2012-05-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Neither Test::Unit nor MiniTest rescue exceptions like Interrupt or NoMemoryError, but ActiveSupport::Testing::SetupAndTeardown#run which overrides MiniTest::Unit::TestCase#run rescues them. Rescuing an Interrupt exception is annoying, because it means when you are running a lot of tests e.g. when running one of the rake test tasks, you cannot break out using ctrl-C. Rescuing exceptions like NoMemoryError is foolish, because the most sensible thing to happen is for the process to terminate as soon as possible. This solution probably needs some finessing e.g. I'm not clear whether the assumption is that only MiniTest is supported. Also early versions of MiniTest did not have this behaviour. However, hopefully it's a start. Integrating with Test::Unit & MiniTest has always been a pain. It would be great if both of them provided sensible extension points for the kind of things that both Rails and Mocha want to do.
* | decoupling activesupport performance testing from actionview and adding testsAndrew Mutz2012-05-281-4/+4
|/
* reverting decoupling of NumberHelper from safe_join and adding tests for ↵Andrew Mutz2012-05-181-0/+1
| | | | escaping of delimiters and separators
* Remove dependency on safe_join from number helpersCarlos Antonio da Silva2012-05-131-3/+2
| | | | Introduced in 0f848dd54911f0e15c5c3aceabf09582cc6eab16.
* Need to include "OutputSaftyHelper" here to preventArun Agrawal2012-05-131-0/+1
| | | | | `number_with_delimiter': undefined method `safe_join' for #<ActiveSupport::Testing::Performance::Metrics::Objects
* Fixed ruby-prof changes and let's use latest ruby-prof now.Arun Agrawal2012-05-131-1/+1
|
* Remove key argument from run_callbacks to fix buildFrancesco Rodriguez2012-05-101-1/+1
|
* Remove unused assignmentsMark Rushakoff2012-04-291-1/+1
|
* merge MRI performance methods into one fileSergey Nartimov2012-01-302-56/+26
|
* no need in separate MiniTest modulesSergey Nartimov2012-01-242-39/+30
|
* Remove ActiveSupport::TestCase#pending, use `skip` insteadCarlos Antonio da Silva2012-01-211-20/+0
|
* Test::Unit::Collector::ObjectSpace is not present anymoreRafael Mendonça França2012-01-181-10/+0
|
* just mix the run method in for minitestAaron Patterson2012-01-061-14/+11
|
* Remove more references to Test::UnitRafael Mendonça França2012-01-061-19/+0
|
* Remove Array.wrap calls in ActiveSupportRafael Mendonça França2012-01-061-2/+1
|
* Merge pull request #4322 from castlerock/minitest_pendingJosé Valim2012-01-051-33/+1
|\ | | | | ActiveSupport::Testing::Pending support for MiniTest only
| * ActiveSupport::Testing::Pending support for MiniTest onlyVishnu Atrai2012-01-051-33/+1
| |
* | support only MiniTest run with Isolation test Vishnu Atrai2012-01-051-29/+1
|/
* Merge pull request #4198 from castlerock/remove_GC_checks_for_ruby19Santiago Pastorino2011-12-271-10/+4
|\ | | | | remove conditions for GC::Profiler in ruby19
| * remove conditions for GC::Profiler in ruby19Vishnu Atrai2011-12-271-10/+4
| |