mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-05 20:40:14 +01:00
unfreeze rails 2.3.9
This commit is contained in:
parent
6443adac78
commit
dea6dbe4da
1916 changed files with 0 additions and 240923 deletions
|
|
@ -1,24 +0,0 @@
|
|||
require 'abstract_unit'
|
||||
|
||||
class LocalizedController < ActionController::Base
|
||||
def hello_world
|
||||
end
|
||||
end
|
||||
|
||||
class LocalizedTemplatesTest < ActionController::TestCase
|
||||
tests LocalizedController
|
||||
|
||||
teardown { I18n.locale = :en }
|
||||
|
||||
def test_localized_template_is_used
|
||||
I18n.locale = :de
|
||||
get :hello_world
|
||||
assert_equal "Gutten Tag", @response.body
|
||||
end
|
||||
|
||||
def test_default_locale_template_is_used_when_locale_is_missing
|
||||
I18n.locale = :dk
|
||||
get :hello_world
|
||||
assert_equal "Hello World", @response.body
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue