Module: Tests::Backend::Api::Link
- Included in:
- I18nChainBackendApiTranslateLinkedTest, I18nFallbacksBackendApiTranslateLinkedTest, I18nPluralizationBackendApiTranslateLinkedTest, I18nSimpleBackendApiTranslateLinkedTest
- Defined in:
- lib/vendor/i18n/test/api/link.rb
Instance Method Summary collapse
- #test_translate_calls_translate_if_resolves_to_a_symbol ⇒ Object
- #test_translate_calls_translate_if_resolves_to_a_symbol2 ⇒ Object
- #test_translate_calls_translate_if_resolves_to_a_symbol3 ⇒ Object
- #test_translate_calls_translate_if_resolves_to_a_symbol_with_scope_1 ⇒ Object
Instance Method Details
#test_translate_calls_translate_if_resolves_to_a_symbol ⇒ Object
7 8 9 10 |
# File 'lib/vendor/i18n/test/api/link.rb', line 7 def test_translate_calls_translate_if_resolves_to_a_symbol setup_linked_translations assert_equal 'foo', I18n.backend.translate('en', :link_to_foo) end |
#test_translate_calls_translate_if_resolves_to_a_symbol2 ⇒ Object
12 13 14 15 |
# File 'lib/vendor/i18n/test/api/link.rb', line 12 def test_translate_calls_translate_if_resolves_to_a_symbol2 setup_linked_translations assert_equal('baz', I18n.backend.translate('en', :link_to_baz)) end |
#test_translate_calls_translate_if_resolves_to_a_symbol3 ⇒ Object
17 18 19 20 |
# File 'lib/vendor/i18n/test/api/link.rb', line 17 def test_translate_calls_translate_if_resolves_to_a_symbol3 setup_linked_translations assert I18n.backend.translate('en', :link_to_bar).key?(:baz) end |
#test_translate_calls_translate_if_resolves_to_a_symbol_with_scope_1 ⇒ Object
22 23 24 25 |
# File 'lib/vendor/i18n/test/api/link.rb', line 22 def test_translate_calls_translate_if_resolves_to_a_symbol_with_scope_1 setup_linked_translations assert_equal('baz', I18n.backend.translate('en', :link_to_baz, :scope => :bar)) end |