1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/core_ext
Josua Schmid fc72d6815a
Fix copy_time_to: Copy nsec instead of usec
`copy_time_to` is a helper function for date and time calculations.
It's being used by `prev_week`, `next_week` and `prev_weekday` to keep
the time fraction when jumping around between days.

Previously the nanoseconds part was lost during the operation. This
lead to problems in practice if you were using the `end_of_day`
calculation. Resulting in the time fraction of `end_of_day` not being
the same as next week's `end_of_day`.

With this fix `copy_time_to` doesn't forget the `nsec` digits.
2016-10-20 10:49:59 +02:00
..
array Fixnum and Bignum are deprecated in Ruby trunk 2016-10-08 08:13:11 +10:30
class modernizes hash syntax in activesupport 2016-08-06 19:38:33 +02:00
digest applies new string literal convention in activesupport/test 2016-08-06 18:10:53 +02:00
hash Add three new rubocop rules 2016-08-16 04:30:11 -03:00
kernel applies new string literal convention in activesupport/test 2016-08-06 18:10:53 +02:00
module improve error message when include assertions fail 2016-09-16 12:03:37 -07:00
object Add three new rubocop rules 2016-08-16 04:30:11 -03:00
bigdecimal_test.rb applies new string literal convention in activesupport/test 2016-08-06 18:10:53 +02:00
class_test.rb applies new string literal convention in activesupport/test 2016-08-06 18:10:53 +02:00
date_and_time_behavior.rb Fix copy_time_to: Copy nsec instead of usec 2016-10-20 10:49:59 +02:00
date_and_time_compatibility_test.rb applies new string literal convention in activesupport/test 2016-08-06 18:10:53 +02:00
date_ext_test.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
date_time_ext_test.rb modernizes hash syntax in activesupport 2016-08-06 19:38:33 +02:00
duration_test.rb RuboCop is 100% green 🎉 2016-09-02 00:43:33 +02:00
enumerable_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
file_test.rb applies new string literal convention in activesupport/test 2016-08-06 18:10:53 +02:00
hash_ext_test.rb improve error message when include assertions fail 2016-09-16 12:03:37 -07:00
integer_ext_test.rb applies new string literal convention in activesupport/test 2016-08-06 18:10:53 +02:00
kernel_test.rb applies new string literal convention in activesupport/test 2016-08-06 18:10:53 +02:00
load_error_test.rb Add Style/EmptyLines in .rubocop.yml and remove extra empty lines 2016-08-07 17:50:59 +09:00
marshal_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
module_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
name_error_test.rb applies new string literal convention in activesupport/test 2016-08-06 18:10:53 +02:00
numeric_ext_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
range_ext_test.rb improve error message when include assertions fail 2016-09-16 12:03:37 -07:00
regexp_ext_test.rb applies new string literal convention in activesupport/test 2016-08-06 18:10:53 +02:00
secure_random_test.rb applies new string literal convention in activesupport/test 2016-08-06 18:10:53 +02:00
string_ext_test.rb modernizes hash syntax in activesupport 2016-08-06 19:38:33 +02:00
time_ext_test.rb modernizes hash syntax in activesupport 2016-08-06 19:38:33 +02:00
time_with_zone_test.rb Revert "Merge pull request #26677 from tbalthazar/26644" 2016-10-02 17:00:18 +01:00
uri_ext_test.rb applies new string literal convention in activesupport/test 2016-08-06 18:10:53 +02:00