diff options
author | kennyj <kennyj@gmail.com> | 2012-02-05 20:31:02 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-02-05 23:51:11 +0900 |
commit | b0374018c2f0b334c18ca80eb8ba94358f13e576 (patch) | |
tree | f459da106c7810b1becad2656efa0f4cb4583e43 /activesupport/test | |
parent | 2bf2055f7a856af0da17473e55ad2bcc5c69b02a (diff) | |
download | rails-b0374018c2f0b334c18ca80eb8ba94358f13e576.tar.gz rails-b0374018c2f0b334c18ca80eb8ba94358f13e576.tar.bz2 rails-b0374018c2f0b334c18ca80eb8ba94358f13e576.zip |
GH #4883. Optional start_day argument for Time#all_week
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/time_ext_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/time_ext_test.rb b/activesupport/test/core_ext/time_ext_test.rb index 6cc63851e9..5b0ccb850a 100644 --- a/activesupport/test/core_ext/time_ext_test.rb +++ b/activesupport/test/core_ext/time_ext_test.rb @@ -802,6 +802,7 @@ class TimeExtCalculationsTest < ActiveSupport::TestCase def test_all_week assert_equal Time.local(2011,6,6,0,0,0)..Time.local(2011,6,12,23,59,59,999999.999), Time.local(2011,6,7,10,10,10).all_week + assert_equal Time.local(2011,6,5,0,0,0)..Time.local(2011,6,11,23,59,59,999999.999), Time.local(2011,6,7,10,10,10).all_week(:sunday) end def test_all_month |