Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ActiveSupport typo fixes. | alkesh26 | 2019-02-01 | 1 | -1/+1 |
| | |||||
* | Merge pull request #34764 from kamipo/avoid_redundant_begin | Ryuta Kamizono | 2018-12-21 | 1 | -41/+33 |
|\ | | | | | Enable `Style/RedundantBegin` cop to avoid newly adding redundant begin block | ||||
| * | Enable `Style/RedundantBegin` cop to avoid newly adding redundant begin block | Ryuta Kamizono | 2018-12-21 | 1 | -41/+33 |
| | | | | | | | | | | | | | | | | | | | | Currently we sometimes find a redundant begin block in code review (e.g. https://github.com/rails/rails/pull/33604#discussion_r209784205). I'd like to enable `Style/RedundantBegin` cop to avoid that, since rescue/else/ensure are allowed inside do/end blocks in Ruby 2.5 (https://bugs.ruby-lang.org/issues/12906), so we'd probably meets with that situation than before. | ||||
* | | Add test for `travel_to` with time zone | yuuji.yaginuma | 2018-12-21 | 1 | -0/+17 |
|/ | | | | This is a regression test for #34751. | ||||
* | Add #unfreeze_time to ActiveSupport::Testing::TimeHelpers | ryanwhocodes | 2018-09-10 | 1 | -0/+4 |
| | |||||
* | Enable `Layout/LeadingCommentSpace` to not allow cosmetic changes in the future | Ryuta Kamizono | 2017-12-14 | 1 | -1/+1 |
| | | | | Follow up of #31432. | ||||
* | [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment` | Koichi ITO | 2017-07-11 | 1 | -0/+1 |
| | |||||
* | Added time helper method `freeze_time` which is an alias for `travel_to ↵ | प्रथमेश Sonpatki | 2017-07-10 | 1 | -0/+22 |
| | | | | Time.now` (#29681) | ||||
* | Use frozen-string-literal in ActiveSupport | Kir Shatrov | 2017-07-09 | 1 | -0/+1 |
| | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 1 | -1/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 1 | -0/+1 |
| | |||||
* | Should escape meta characters in regexp | Ryuta Kamizono | 2017-05-07 | 1 | -1/+1 |
| | |||||
* | correctly check error message | yuuji.yaginuma | 2017-01-25 | 1 | -1/+2 |
| | | | | | | | `assert_raise` does not check error message. However, in some tests, it seems like expecting error message checking with `assert_raise`. Instead of specifying an error message in `assert_raise`, modify to use another assert to check the error message. | ||||
* | Make time travel work with subclasses of Time/Date/Datetime | Jonas Nicklas | 2017-01-10 | 1 | -0/+19 |
| | | | | | Closes #27614 Previously when calling `now` on a subclass of e.g. `Time` it would return an instance of `Time` instead of returning an instance of the subclass. This way, we always return the correct class. | ||||
* | applies new string literal convention in activesupport/test | Xavier Noria | 2016-08-06 | 1 | -3/+3 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Make sure the time method is unstubed | Rafael Mendonça França | 2016-07-17 | 1 | -29/+41 |
| | | | | | | The minitest stubs were conflicting with the time travel stubs so the travel_back method call in the teardown block was actually keeping the time stubbed. | ||||
* | `travel/travel_to` travel time helpers, now raise on nested calls, | Vipul A M | 2016-07-02 | 1 | -0/+43 |
| | | | | | | | | | | | | | | | | | | | | | | | | | as this can lead to confusing time stubbing. Instead of: travel_to 2.days.from_now do # 2 days from today travel_to 3.days.from_now do # 5 days from today end end preferred way to achieve above is: travel_to 2.days.from_now # 2 days from today travel_back travel_to 5.days.from_now # 5 days from today Closes #24690 Fixes #24689 | ||||
* | Removed mocha stubbing in active_support | Ronak Jangir | 2015-06-07 | 1 | -46/+54 |
| | |||||
* | as/core_ext require's not used | Ankit Gupta | 2015-05-08 | 1 | -1/+0 |
| | |||||
* | Change AS::Testing::TimeHelpers#travel_to to also stub DateTime.now | Yuki Nishijima | 2015-02-03 | 1 | -0/+11 |
| | |||||
* | Move date and time requires to time_travel_test, also include | Zachary Scott | 2014-08-19 | 1 | -0/+4 |
| | | | | | | 'abstract_unit'. cc #16564 | ||||
* | Move TimeHelperTest to TimeTravelTest from `as/test_test.rb` | Zachary Scott | 2014-08-19 | 1 | -0/+68 |