Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add regression tests for #9678 | Andrew White | 2013-03-13 | 1 | -0/+16 |
| | | | | | The bug with `ActiveSupport::TimeZone.parse` described in #9678 was unwittingly fixed in 005d910 so add some tests to prevent regression. | ||||
* | Merge pull request #9681 from vipulnsward/fix_typo_in_module_name | Carlos Antonio da Silva | 2013-03-12 | 4 | -7/+7 |
|\ | | | | | Fix typo in DependenciesTestHelpers module name | ||||
| * | Fix typo in DependenciesTestHelpers module name | Vipul A M | 2013-03-12 | 4 | -7/+7 |
| | | |||||
* | | Cleanup tests for unused variables | Vipul A M | 2013-03-11 | 2 | -3/+1 |
|/ | |||||
* | Fixed tests for returning an instance of `Time` in the local system timezone. | Paul Nikitochkin | 2013-03-10 | 1 | -5/+5 |
| | |||||
* | Fix deletion of empty directories: | Charles Jones | 2013-02-25 | 1 | -0/+12 |
| | | | | | | | | | | | | | | | 1. When comparing the directory to delete against the top level cache_path, use File.realpath to make sure we aren't comparing two unequal strings that point to the same path. This occurs, for example, when cache_path has a trailing slash, which it does in the default Rails configuration. Since the input to delete_empty_directories never has a trailing slash, the comparison will never be true and the top level cache directory (and above) may be deleted. However… 2. File.delete raises EPERM when trying to delete a directory, so no directories have ever been deleted. Changing the code to Dir.delete fixes that. | ||||
* | Keep second fraction when DateTime#change is called. | Chris Baynes | 2013-02-25 | 1 | -0/+3 |
| | |||||
* | Added `ActiveSupport::TimeWithZone#to_r` for `Time#at` compatibility. | stopdropandrew | 2013-02-24 | 1 | -0/+11 |
| | |||||
* | Move number_to_human test from AP to AS | Carlos Antonio da Silva | 2013-02-22 | 1 | -0/+7 |
| | | | | | Since all changes from #9347 are related to AS, it seems proper that the test is placed there as well. | ||||
* | Added beginning_of_minute support to core_ext calculations for Time and DateTime | Gagan Awhad | 2013-02-21 | 3 | -0/+30 |
| | |||||
* | added compress options for gzip | Beyond | 2013-02-10 | 1 | -0/+18 |
| | | | | | | added test for compress options of gzip update changelog | ||||
* | Merge pull request #9128 from jamesotron/iso8601-sub-second-accuracy | Jeremy Kemper | 2013-02-06 | 1 | -1/+1 |
|\ | | | | | Modify TimeWithZone#as_json to return 3DP of sub-second accuracy. | ||||
| * | Modify TimeWithZone#as_json to return 3DP of sub-second accuracy by default, ↵ | James Harton | 2013-01-31 | 1 | -1/+1 |
| | | | | | | | | since it's allowed by the spec and is very useful. | ||||
* | | Missing require extract_options | Akira Matsuda | 2013-01-31 | 1 | -0/+1 |
|/ | |||||
* | Merge pull request #8830 from antoinelyset/master | Xavier Noria | 2013-01-28 | 1 | -3/+4 |
|\ | | | | | Improve String#squish whitespaces matching | ||||
| * | Improve String#squish whitespaces matching | Antoine Lyset | 2013-01-22 | 1 | -3/+4 |
| | | |||||
* | | Use Encoding::UTF_8 constant :do_not_litter: | Akira Matsuda | 2013-01-28 | 1 | -2/+2 |
| | | |||||
* | | Set Thread.abort_on_exception for the whole AS, AP, and AR tests | Akira Matsuda + Koichi Sasada | 2013-01-24 | 1 | -0/+2 |
| | | | | | | | | this would give us some more clues in case a test silently dies inside Thread | ||||
* | | Fix some wrong String extensions tests | Akira Matsuda | 2013-01-23 | 1 | -7/+9 |
| | | | | | | | | | | | | * ASCII_STRING was not an ASCII String * BYTE_STRING was not an in valid UTF-8 String * added an assertion for non-UTF-8 String | ||||
* | | Test String#dasherize | Akira Matsuda | 2013-01-23 | 1 | -0/+6 |
| | | |||||
* | | Test that rescue_from accepts a class name in String | Akira Matsuda | 2013-01-23 | 1 | -2/+1 |
| | | |||||
* | | Test Kernel#quietly | Akira Matsuda | 2013-01-23 | 1 | -0/+12 |
| | | |||||
* | | Test try! with a block | Akira Matsuda | 2013-01-23 | 1 | -0/+4 |
| | | |||||
* | | Test that DeprecatedConstantProxy does not warn when accessing its class | Akira Matsuda | 2013-01-23 | 1 | -0/+1 |
| | | |||||
* | | Missing AS::Deprecation::DeprecatedObjectProxy test | Akira Matsuda | 2013-01-23 | 1 | -0/+5 |
| | | |||||
* | | Test that a DateTime acts_like_date | Akira Matsuda | 2013-01-23 | 1 | -0/+4 |
|/ | |||||
* | Merge pull request #8671 from xuanxu/fix_irregular | Xavier Noria | 2013-01-21 | 1 | -0/+1 |
|\ | | | | | Inflector irregular singularize rules | ||||
| * | Inflector irregular singularize rules | Juanjo Bazán | 2013-01-01 | 1 | -0/+1 |
| | | |||||
* | | Use `DateTime.parse` inside `String#to_datetime` | Andrew White | 2013-01-21 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | Use the standard library's `DateTime.parse` because it's marginally faster and supports partial date/time strings. Benchmark: user system total real old 3.980000 0.000000 3.980000 ( 3.987606) new 3.640000 0.010000 3.650000 ( 3.641342) | ||||
* | | Standardise the return value of `to_time` | Andrew White | 2013-01-21 | 5 | -17/+63 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit standardises the return value of `to_time` to an instance of `Time` in the local system timezone, matching the Ruby core and standard library behavior. The default form for `String#to_time` has been changed from :utc to :local but research seems to suggest the latter is the more common form. Also fix an edge condition with `String#to_time` where the string has a timezone offset in it and the mode is :local. e.g: # Before: >> "2000-01-01 00:00:00 -0500".to_time(:local) => 2000-01-01 05:00:00 -0500 # After: >> "2000-01-01 00:00:00 -0500".to_time(:local) => 2000-01-01 00:00:00 -0500 Closes #2453 | ||||
* | | Fix failing test about date.order translation values | Carlos Antonio da Silva | 2013-01-19 | 1 | -1/+1 |
| | | | | | | | | Introduced in b718998f3e8e6f3d01ad138e40f08fbcc3736285. | ||||
* | | Test to allow Range including DateTime and DateTime::Infinity | gsphanikumar | 2013-01-14 | 1 | -0/+6 |
| | | | | | | | | Closes #8587 | ||||
* | | extract PerformanceTest into rails-performance_tests gem | Yves Senn | 2013-01-10 | 1 | -68/+0 |
| | | |||||
* | | adding start / finish on the instrumenter, adding tests for the class | Aaron Patterson | 2013-01-09 | 1 | -0/+50 |
| | | |||||
* | | Merge pull request #8859 from tehgeekmeister/master | Vijay Dev | 2013-01-09 | 1 | -2/+2 |
|\ \ | | | | | | | Fix a typo in a test. | ||||
| * | | s/messqage/message/ in message_encryptor_test.rb | Ezekiel Smithburg | 2013-01-09 | 1 | -2/+2 |
| | | | |||||
* | | | CVE-2013-0156: Safe XML params parsing. Doesn't allow symbols or yaml. | Jeremy Kemper | 2013-01-08 | 1 | -6/+22 |
| | | | |||||
* | | | Revert "Merge branch 'master-sec'" | Jeremy Kemper | 2013-01-08 | 1 | -22/+6 |
| | | | | | | | | | | | | | | | This reverts commit 88cc1688d0cb828c17706b41a8bd27870f2a2beb, reversing changes made to f049016cd348627bf8db0d72382d7580bf802a79. | ||||
* | | | CVE-2013-0156: Safe XML params parsing. Doesn't allow symbols or yaml. | Jeremy Kemper | 2013-01-08 | 1 | -6/+22 |
|/ / | |||||
* | | Namespace HashWithIndifferentAccess | Akira Matsuda | 2013-01-07 | 1 | -1/+1 |
| | | |||||
* | | Remove unnecessary begin..rescue..end, use only rescue | Akira Matsuda | 2013-01-06 | 2 | -14/+10 |
| | | |||||
* | | deprecate `assert_blank` and `assert_present`. | Yves Senn | 2013-01-05 | 3 | -20/+29 |
| | | | | | | | | | | They don't add any benefits over `assert object.blank?` and `assert object.present?` | ||||
* | | Better error message for String#to_date | Kelly Stannard | 2013-01-04 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | I did this because to_date gives a very unhelpful error message if you do not pass in a correct date. In the process I think this cleans up the code nicely and even better it tends to be slightly faster than the current implementation. Benchmark https://gist.github.com/4440875 | ||||
* | | Remove assert_nothing_raised | Rafael Mendonça França | 2013-01-03 | 6 | -67/+49 |
| | | |||||
* | | Added ability to compare date/time with infinity | bUg | 2013-01-04 | 6 | -0/+126 |
|/ | | | | | | | | | | | | | | | | | Date, DateTime, Time and TimeWithZone can now be compared to infinity, so it's now possible to create ranges with one infinite bound and date/time object as another bound. Ex.: @range = Range.new(Date.today, Float::INFINITY) Also it's possible to check inclusion of date/time in range with conversion. Ex.: @range.include?(Time.now + 1.year) # => true @range.include?(DateTime.now + 1.year) # => true Ability to create date/time ranges with infinite bound is required for handling postgresql range types. | ||||
* | Only call MiniTest.autorun if the dependecy is present | Rafael Mendonça França | 2012-12-31 | 4 | -16/+12 |
| | |||||
* | Alias refute methods to assert_not and perfer assert_not on tests | Rafael Mendonça França | 2012-12-31 | 2 | -3/+3 |
| | |||||
* | Remove unneeded tests | Rafael Mendonça França | 2012-12-31 | 1 | -22/+0 |
| | | | | These tests are needed only if we are using MiniTest::Spec | ||||
* | Add active_support/testing/autorun | Rafael Mendonça França | 2012-12-31 | 2 | -2/+2 |
| | | | | | minitest/autorun load minitest/spec polluting the global namespace with the DSL that we don't want on Rails | ||||
* | Test that assert_not returns true. Use assert_raises instead of doing ↵ | Jeremy Kemper | 2012-12-28 | 1 | -17/+7 |
| | | | | begin/rescue/else. |