aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-02-05 07:25:50 -0800
committerSantiago Pastorino <santiago@wyeworks.com>2012-02-05 07:25:50 -0800
commit09804fb7043f027ad88aa1c1deab739b8df0f257 (patch)
tree9a9732657217038eed71dd1c99a5ad5f83b556af /activesupport/test
parentb0d05f4bee6960b70d0ef46f44390a796f19c9d5 (diff)
parent9abdabf18588068ef979499dbfd4a8d436a45dd5 (diff)
downloadrails-09804fb7043f027ad88aa1c1deab739b8df0f257.tar.gz
rails-09804fb7043f027ad88aa1c1deab739b8df0f257.tar.bz2
rails-09804fb7043f027ad88aa1c1deab739b8df0f257.zip
Merge pull request #4891 from kennyj/fix_4883
[master] Optional start_day argument for Time#all_week.
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/core_ext/time_ext_test.rb1
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 d45ab70f53..eda8066579 100644
--- a/activesupport/test/core_ext/time_ext_test.rb
+++ b/activesupport/test/core_ext/time_ext_test.rb
@@ -807,6 +807,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