Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | deprecate `assert_blank` and `assert_present`. | Yves Senn | 2013-01-05 | 1 | -0/+2 |
| | | | | | They don't add any benefits over `assert object.blank?` and `assert object.present?` | ||||
* | added marshal_load and marshal_dump for ProxyTestResult. Behavior of ↵ | SHIBATA Hiroshi | 2013-01-05 | 1 | -2/+10 |
| | | | | method_missing with Marshal.dump and Marshal.load is changing in ruby 2.0.0 later. | ||||
* | Add active_support/testing/autorun | Rafael Mendonça França | 2012-12-31 | 1 | -0/+5 |
| | | | | | minitest/autorun load minitest/spec polluting the global namespace with the DSL that we don't want on Rails | ||||
* | Revert "minitest provides "it" and "describe"" | Rafael Mendonça França | 2012-12-31 | 1 | -0/+40 |
| | | | | | | | | | | This reverts commit 22bc12ec374b8bdeb3818ca0a3eb787dd3ce39d8. REASON: We will remove the MiniTest::Spec from Rails and we need these methods again Conflicts: activesupport/lib/active_support/test_case.rb | ||||
* | Introduce assert_not to replace 'assert !foo' | Jeremy Kemper | 2012-12-28 | 1 | -0/+16 |
| | |||||
* | Make test logs easier to read. | Jeremy Kemper | 2012-12-26 | 1 | -11/+10 |
| | | | | | | Tagging every message in tests makes the logs really wide. It's great for grepping, but annoying to open in an editor or a narrow terminal. Try out a different approach: spit out a heading before each test. | ||||
* | nodoc AS::Testing::ConstantLookup::ClassMethods [ci skip] | Carlos Duclos | 2012-12-01 | 1 | -1/+1 |
| | |||||
* | nodoc AS::Testing::Pending because is deprecated [ci skip] | Carlos Duclos | 2012-12-01 | 1 | -2/+2 |
| | |||||
* | Properly deprecate #pending from AS::TestCase | Carlos Antonio da Silva | 2012-11-18 | 1 | -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 Silva | 2012-11-18 | 1 | -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 Mead | 2012-11-12 | 1 | -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 Kemper | 2012-11-05 | 1 | -1/+1 |
| | |||||
* | Remove AS::Concern extension from Testing::TaggedLogging | Carlos Antonio da Silva | 2012-11-05 | 1 | -4/+0 |
| | |||||
* | some ruby interpreters don't have ruby-prof so just skip the tests | Aaron Patterson | 2012-10-18 | 1 | -1/+1 |
| | | | | rather than exiting the process. | ||||
* | Tests tag the Rails log with the current test class and test case | Jeremy Kemper | 2012-09-26 | 1 | -0/+30 |
| | |||||
* | Add missing inflector dependency | Mike Moore | 2012-09-25 | 1 | -3/+2 |
| | |||||
* | Create ActiveSupport::Testing::ConstantLookup | Mike Moore | 2012-09-24 | 1 | -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 Rodriguez | 2012-09-14 | 2 | -7/+9 |
| | |||||
* | deprecate `describe` without a block. | Aaron Patterson | 2012-07-09 | 1 | -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 minitest | Aaron Patterson | 2012-07-08 | 1 | -0/+22 |
| | |||||
* | minitest provides "it" and "describe" | Aaron Patterson | 2012-07-08 | 1 | -40/+0 |
| | | | | Remove rails implementation of describe, alias "test" to "it" | ||||
* | Kill not used constant since removal of runner method | Carlos Antonio da Silva | 2012-07-03 | 1 | -9/+0 |
| | | | | Runner method was removed in ada571bfcdbad669ae43a4dd18277ef227680a0b. | ||||
* | remove the runner method copied from minitest | Aaron Patterson | 2012-07-03 | 1 | -20/+7 |
| | |||||
* | hook mocha in through m/t before_setup, after_teardown hooks | Aaron Patterson | 2012-07-03 | 2 | -7/+22 |
| | |||||
* | add :nodoc: to internal implementations [ci skip] | Francesco Rodriguez | 2012-06-22 | 2 | -2/+2 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-06-22 | 1 | -23/+34 |
|\ | |||||
| * | fixes a few mistakes in api docs [ci skip] | Vijay Dev | 2012-06-22 | 1 | -1/+1 |
| | | |||||
| * | update AS::Testing::Assertions docs | Francesco Rodriguez | 2012-06-19 | 1 | -21/+32 |
| | | |||||
| * | fix typo [ci skip] | Francesco Rodriguez | 2012-06-19 | 1 | -2/+2 |
| | | |||||
* | | Run the logger tests in isolation | Rafael Mendonça França | 2012-06-19 | 1 | -1/+1 |
| | | |||||
* | | CORES needs to be a integer | Rafael Mendonça França | 2012-06-19 | 1 | -1/+1 |
| | | |||||
* | | run railties tests in parallel, default to 2 cores | Aaron Patterson | 2012-06-19 | 1 | -0/+39 |
|/ | |||||
* | Eliminate dependency on Rails::VERSION::STRING | Andrew White | 2012-06-05 | 1 | -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 tests | Andrew White | 2012-05-31 | 1 | -0/+5 |
| | | | | Eliminate the warnings generated by redefining methods and constants. | ||||
* | Merge pull request #6525 from freerange/minitest-passthrough-exceptions | José Valim | 2012-05-29 | 1 | -0/+12 |
|\ | | | | | Exceptions like Interrupt & NoMemoryError should not be rescued in tests. | ||||
| * | Avoid dependency on MiniTest::Unit::TestCase::PASSTHROUGH_EXCEPTIONS. | James Mead | 2012-05-29 | 1 | -2/+10 |
| | | |||||
| * | Exceptions like Interrupt should not be rescued. | James Mead | 2012-05-28 | 1 | -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 tests | Andrew Mutz | 2012-05-28 | 1 | -4/+4 |
|/ | |||||
* | reverting decoupling of NumberHelper from safe_join and adding tests for ↵ | Andrew Mutz | 2012-05-18 | 1 | -0/+1 |
| | | | | escaping of delimiters and separators | ||||
* | Remove dependency on safe_join from number helpers | Carlos Antonio da Silva | 2012-05-13 | 1 | -3/+2 |
| | | | | Introduced in 0f848dd54911f0e15c5c3aceabf09582cc6eab16. | ||||
* | Need to include "OutputSaftyHelper" here to prevent | Arun Agrawal | 2012-05-13 | 1 | -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 Agrawal | 2012-05-13 | 1 | -1/+1 |
| | |||||
* | Remove key argument from run_callbacks to fix build | Francesco Rodriguez | 2012-05-10 | 1 | -1/+1 |
| | |||||
* | Remove unused assignments | Mark Rushakoff | 2012-04-29 | 1 | -1/+1 |
| | |||||
* | merge MRI performance methods into one file | Sergey Nartimov | 2012-01-30 | 2 | -56/+26 |
| | |||||
* | no need in separate MiniTest modules | Sergey Nartimov | 2012-01-24 | 2 | -39/+30 |
| | |||||
* | Remove ActiveSupport::TestCase#pending, use `skip` instead | Carlos Antonio da Silva | 2012-01-21 | 1 | -20/+0 |
| | |||||
* | Test::Unit::Collector::ObjectSpace is not present anymore | Rafael Mendonça França | 2012-01-18 | 1 | -10/+0 |
| | |||||
* | just mix the run method in for minitest | Aaron Patterson | 2012-01-06 | 1 | -14/+11 |
| | |||||
* | Remove more references to Test::Unit | Rafael Mendonça França | 2012-01-06 | 1 | -19/+0 |
| |