aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Merge pull request #8156 from fredwu/acronym_fix-master"Steve Klabnik2013-03-161-2/+0
| | | | | | | | | This reverts commit 867dc1700f32aae6f98c4651bd501597e6b52bc0, reversing changes made to 9a421aaa8285cf2a7ecb1af370748b0337818930. This breaks anyone who's using ForceSSL: https://travis-ci.org/rails-api/rails-api/jobs/5556065 Please see comments on #8156 for some discussion.
* Fixed a bug where the inflector would replace camelCase strings and ↵Fred Wu2013-03-171-0/+2
| | | | disregarding specified acronyms, fixes #8015
* Revert "make new rails apps log to STDOUT"Steve Klabnik2013-03-151-11/+0
| | | | | | This reverts commit b7d9d6e2cd5082d269dafbc0316e2107febe1451. Per discussion with @jeremy and @rubys on Campfire.
* make new rails apps log to STDOUTTerence Lee2013-03-151-0/+11
|
* Add regression tests for #9678Andrew White2013-03-131-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_nameCarlos Antonio da Silva2013-03-124-7/+7
|\ | | | | Fix typo in DependenciesTestHelpers module name
| * Fix typo in DependenciesTestHelpers module nameVipul A M2013-03-124-7/+7
| |
* | Cleanup tests for unused variablesVipul A M2013-03-112-3/+1
|/
* Fixed tests for returning an instance of `Time` in the local system timezone.Paul Nikitochkin2013-03-101-5/+5
|
* Fix deletion of empty directories:Charles Jones2013-02-251-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 Baynes2013-02-251-0/+3
|
* Added `ActiveSupport::TimeWithZone#to_r` for `Time#at` compatibility.stopdropandrew2013-02-241-0/+11
|
* Move number_to_human test from AP to ASCarlos Antonio da Silva2013-02-221-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 DateTimeGagan Awhad2013-02-213-0/+30
|
* added compress options for gzipBeyond2013-02-101-0/+18
| | | | | | added test for compress options of gzip update changelog
* Merge pull request #9128 from jamesotron/iso8601-sub-second-accuracyJeremy Kemper2013-02-061-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 Harton2013-01-311-1/+1
| | | | | | | | since it's allowed by the spec and is very useful.
* | Missing require extract_optionsAkira Matsuda2013-01-311-0/+1
|/
* Merge pull request #8830 from antoinelyset/masterXavier Noria2013-01-281-3/+4
|\ | | | | Improve String#squish whitespaces matching
| * Improve String#squish whitespaces matchingAntoine Lyset2013-01-221-3/+4
| |
* | Use Encoding::UTF_8 constant :do_not_litter:Akira Matsuda2013-01-281-2/+2
| |
* | Set Thread.abort_on_exception for the whole AS, AP, and AR testsAkira Matsuda + Koichi Sasada2013-01-241-0/+2
| | | | | | | | this would give us some more clues in case a test silently dies inside Thread
* | Fix some wrong String extensions testsAkira Matsuda2013-01-231-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#dasherizeAkira Matsuda2013-01-231-0/+6
| |
* | Test that rescue_from accepts a class name in StringAkira Matsuda2013-01-231-2/+1
| |
* | Test Kernel#quietlyAkira Matsuda2013-01-231-0/+12
| |
* | Test try! with a blockAkira Matsuda2013-01-231-0/+4
| |
* | Test that DeprecatedConstantProxy does not warn when accessing its classAkira Matsuda2013-01-231-0/+1
| |
* | Missing AS::Deprecation::DeprecatedObjectProxy testAkira Matsuda2013-01-231-0/+5
| |
* | Test that a DateTime acts_like_dateAkira Matsuda2013-01-231-0/+4
|/
* Merge pull request #8671 from xuanxu/fix_irregularXavier Noria2013-01-211-0/+1
|\ | | | | Inflector irregular singularize rules
| * Inflector irregular singularize rulesJuanjo Bazán2013-01-011-0/+1
| |
* | Use `DateTime.parse` inside `String#to_datetime`Andrew White2013-01-211-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 White2013-01-215-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 valuesCarlos Antonio da Silva2013-01-191-1/+1
| | | | | | | | Introduced in b718998f3e8e6f3d01ad138e40f08fbcc3736285.
* | Test to allow Range including DateTime and DateTime::Infinitygsphanikumar2013-01-141-0/+6
| | | | | | | | Closes #8587
* | extract PerformanceTest into rails-performance_tests gemYves Senn2013-01-101-68/+0
| |
* | adding start / finish on the instrumenter, adding tests for the classAaron Patterson2013-01-091-0/+50
| |
* | Merge pull request #8859 from tehgeekmeister/masterVijay Dev2013-01-091-2/+2
|\ \ | | | | | | Fix a typo in a test.
| * | s/messqage/message/ in message_encryptor_test.rbEzekiel Smithburg2013-01-091-2/+2
| | |
* | | CVE-2013-0156: Safe XML params parsing. Doesn't allow symbols or yaml.Jeremy Kemper2013-01-081-6/+22
| | |
* | | Revert "Merge branch 'master-sec'"Jeremy Kemper2013-01-081-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 Kemper2013-01-081-6/+22
|/ /
* | Namespace HashWithIndifferentAccessAkira Matsuda2013-01-071-1/+1
| |
* | Remove unnecessary begin..rescue..end, use only rescueAkira Matsuda2013-01-062-14/+10
| |
* | deprecate `assert_blank` and `assert_present`.Yves Senn2013-01-053-20/+29
| | | | | | | | | | They don't add any benefits over `assert object.blank?` and `assert object.present?`
* | Better error message for String#to_dateKelly Stannard2013-01-041-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_raisedRafael Mendonça França2013-01-036-67/+49
| |
* | Added ability to compare date/time with infinitybUg2013-01-046-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 presentRafael Mendonça França2012-12-314-16/+12
|