Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename the class as there is already an existing class with that name | Edouard CHIN | 2018-04-06 | 1 | -1/+1 |
| | |||||
* | `SetupAndTeardown#teardown` should call any subsequent after_teardown: | Edouard CHIN | 2018-04-06 | 1 | -0/+34 |
| | | | | | | | | If you have a regular test that have a teardown block, and for any reason an exception get raised, ActiveSupport will not run subsequent after_teardown method provided by other module or gems. One of them being the ActiveRecord::TestFixtures which won't rollback the transation when the test ends making all subsequent test to be in a weird state. The default implementation of minitest is to run all teardown methods from the user's test, rescue all exceptions, run all after_teardown methods provided by libraries and finally re-raise the exception that happened in the user's teardown method. Rails should do the same. | ||||
* | [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment` | Koichi ITO | 2017-07-11 | 3 | -0/+3 |
| | |||||
* | Use frozen-string-literal in ActiveSupport | Kir Shatrov | 2017-07-09 | 3 | -0/+3 |
| | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 3 | -3/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 3 | -0/+3 |
| | |||||
* | Define path with __dir__ | bogdanvlviv | 2017-05-23 | 1 | -2/+2 |
| | | | | | | ".. with __dir__ we can restore order in the Universe." - by @fxn Related to 5b8738c2df003a96f0e490c43559747618d10f5f | ||||
* | Should escape meta characters in regexp | Ryuta Kamizono | 2017-05-07 | 1 | -2/+2 |
| | |||||
* | applies new string literal convention in activesupport/test | Xavier Noria | 2016-08-06 | 3 | -8/+8 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Pathname might not be always initialized. | Vít Ondruch | 2016-07-04 | 1 | -0/+2 |
| | | | | Require 'pathname' explicitly | ||||
* | Do not depend on Rails git repository layout in ActiveSupport tests. | Vít Ondruch | 2016-07-01 | 1 | -2/+2 |
| | |||||
* | Cleaned up generators tests using internal assertion helper | Ronak Jangir | 2015-08-20 | 1 | -0/+6 |
| | |||||
* | Replacing lambda with proc getting argument error because of it. | Ronak Jangir | 2015-08-17 | 1 | -0/+6 |
| | |||||
* | Added helper methods to stub any instance | Ronak Jangir | 2015-08-13 | 1 | -0/+13 |
| | |||||
* | Add multiple expected calls to assert_called_with. | Kasper Timm Hansen | 2015-07-10 | 1 | -0/+7 |
| | |||||
* | Add method call assertions for internal use. | Kasper Timm Hansen | 2015-07-08 | 1 | -0/+91 |
| | | | | | Add `assert_called` and `assert_not_called` to boil down the boilerplate we need to write to assert methods are called certain number of times. | ||||
* | introduce `ActiveSupport::Testing::FileFixtures`. | Yves Senn | 2015-01-28 | 1 | -0/+28 |
| | | | | | | It's a thin layer to provide easy access to sample files throughout test-cases. This adds the directory `test/fixtures/files` to newly generated applications. | ||||
* | Use `safe_constantize`. | Guo Xiang Tan | 2014-09-02 | 1 | -0/+8 |
| | | | | Fixes https://github.com/rails/rails/issues/9933. | ||||
* | Unused classes in AS tests | Akira Matsuda | 2013-12-19 | 1 | -1/+0 |
| | |||||
* | determine_constant_from_test_name does not swallow NoMethodErrors [Yves Senn] | Xavier Noria | 2013-03-28 | 1 | -0/+10 |
| | |||||
* | extract PerformanceTest into rails-performance_tests gem | Yves Senn | 2013-01-10 | 1 | -68/+0 |
| | |||||
* | Fix typo in test name | Carlos Antonio da Silva | 2012-11-04 | 1 | -1/+1 |
| | |||||
* | some ruby interpreters don't have ruby-prof so just skip the tests | Aaron Patterson | 2012-10-18 | 1 | -3/+12 |
| | | | | rather than exiting the process. | ||||
* | ConstantLookup is not needed in every TestCase decendant | Andy Lindeman | 2012-09-26 | 1 | -0/+1 |
| | |||||
* | Add missing inflector dependency | Mike Moore | 2012-09-25 | 1 | -1/+1 |
| | |||||
* | Create ActiveSupport::Testing::ConstantLookup | Mike Moore | 2012-09-24 | 1 | -0/+58 |
| | | | | | 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. | ||||
* | Eliminate dependency on Rails::VERSION::STRING | Andrew White | 2012-06-05 | 1 | -2/+21 |
| | | | | | | 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. | ||||
* | decoupling activesupport performance testing from actionview and adding tests | Andrew Mutz | 2012-05-28 | 1 | -0/+40 |