Commit 8008b6e672c322c85266f2f8e3ad259531be4e0b
1 parent
c9834472
Exists in
master
and in
4 other branches
Fixed enumerable tests
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/test_helper.rb
... | ... | @@ -1068,7 +1068,7 @@ module TestGroupdate |
1068 | 1068 | Date.parse("2013-05-02") => 0, |
1069 | 1069 | Date.parse("2013-05-03") => 0 |
1070 | 1070 | } |
1071 | - assert_equal expected, User.group_by_day(:created_at, range: Date.parse("2013-05-01")..Date.parse("2013-05-03")).count | |
1071 | + assert_equal expected, call_method(:day, :created_at, series: true, range: Date.parse("2013-05-01")..Date.parse("2013-05-03")) | |
1072 | 1072 | ensure |
1073 | 1073 | ENV["TZ"] = "UTC" |
1074 | 1074 | end |
... | ... | @@ -1079,7 +1079,7 @@ module TestGroupdate |
1079 | 1079 | Date.parse("2013-05-01") => 0, |
1080 | 1080 | Date.parse("2013-05-02") => 0 |
1081 | 1081 | } |
1082 | - assert_equal expected, User.group_by_day(:created_at, range: Date.parse("2013-05-01")...Date.parse("2013-05-03")).count | |
1082 | + assert_equal expected, call_method(:day, :created_at, series: true, range: Date.parse("2013-05-01")...Date.parse("2013-05-03")) | |
1083 | 1083 | ensure |
1084 | 1084 | ENV["TZ"] = "UTC" |
1085 | 1085 | end | ... | ... |