Methods
- S
- T
Instance Public methods
setup()
Link
test_action_controller_base_responds_to_l()
Link
test_action_controller_base_responds_to_localize()
Link
test_action_controller_base_responds_to_t()
Link
test_action_controller_base_responds_to_translate()
Link
test_default_translation()
Link
test_lazy_lookup()
Link
# File actionpack/test/abstract/translation_test.rb, line 30 def test_lazy_lookup expected = 'bar' @controller.stubs(action_name: :index) I18n.stubs(:translate).with('abstract_controller.testing.translation.index.foo').returns(expected) assert_equal expected, @controller.t('.foo') end