This commit is contained in:
Matteo Giaccone 2014-12-30 22:56:19 +00:00 committed by Dan Rice
parent 31217762a0
commit d7fbcb10c4
7 changed files with 10 additions and 7 deletions

View file

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