diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-11-27 08:17:50 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-11-27 08:22:38 +0900 |
commit | 6700f8572615b70ba4ff5e6739a32211fbabed0c (patch) | |
tree | f4630697e9a1c0ac3bfe8122220a3f6ddfe8cd0e /railties/lib/rails/generators/test_unit.rb | |
parent | 5921043f9e51dfe0750c13f1ca58d3c912e729c7 (diff) | |
download | rails-6700f8572615b70ba4ff5e6739a32211fbabed0c.tar.gz rails-6700f8572615b70ba4ff5e6739a32211fbabed0c.tar.bz2 rails-6700f8572615b70ba4ff5e6739a32211fbabed0c.zip |
Fix `apply_seconds_precision` not to be affected by `mathn`
Currently `apply_seconds_precision` cannnot round usec
when after `require 'mathn'`.
```
irb(main):001:0> 1234 / 1000 * 1000
=> 1000
irb(main):002:0> 1234 - 1234 % 1000
=> 1000
irb(main):003:0> require 'mathn'
=> true
irb(main):004:0> 1234 / 1000 * 1000
=> 1234
irb(main):005:0> 1234 - 1234 % 1000
=> 1000
```
Diffstat (limited to 'railties/lib/rails/generators/test_unit.rb')
0 files changed, 0 insertions, 0 deletions