fix timezone issue

try testing at 00:30
This commit is contained in:
Reinier Balt 2012-07-13 00:28:06 +02:00
parent e03c521314
commit 80e47b94b0

View file

@ -18,11 +18,11 @@ class PreferencesControllerTest < ActionController::TestCase
get :render_date_format
assert_response :success
assert_equal I18n.l(Time.zone.now, :format => "%Y-%m-%d"), @response.body
assert_equal I18n.l(Date.today, :format => "%Y-%m-%d"), @response.body
get(:render_date_format, {:date_format => "%A %Y"})
assert_response :success
assert_equal I18n.l(Time.zone.now, :format => "%A %Y"), @response.body
assert_equal I18n.l(Date.today, :format => "%A %Y"), @response.body
end
test "index page requires login" do