Commit 314ebb6cd54e2169c64258f3e362062f3b7da388
1 parent
8ecbb86e
Exists in
master
and in
3 other branches
Fixed ActiveRecord 3 test
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
Rakefile
test/test_helper.rb
... | ... | @@ -229,7 +229,7 @@ module TestDatabase |
229 | 229 | Time.zone = pt |
230 | 230 | today = Date.today |
231 | 231 | create_user today.to_s |
232 | - this_month = today.in_time_zone(pt).beginning_of_month | |
232 | + this_month = pt.parse(today.to_s).beginning_of_month | |
233 | 233 | last_month = this_month - 1.month |
234 | 234 | expected = { |
235 | 235 | last_month.to_date => 0, | ... | ... |