Sha256: 11e7ba51a1e086c6f60ddf7ad823e78374fb721d760e9c2876a3a0a02c9235f1
Contents?: true
Size: 640 Bytes
Versions: 2
Compression:
Stored size: 640 Bytes
Contents
require 'test_helper' class HelpersTest < ActionView::TestCase test "should create helpers" do I18n.available_locales.each do |locale| I18n.locale = locale assert_equal "/#{locale}/#{I18n.t('routes.namespace')}/#{I18n.t('routes.nested')}", namespace_nested_path assert_equal "/#{locale}/#{I18n.t('routes.namespace')}/#{I18n.t('routes.resources')}", namespace_resources_path assert_equal "/#{locale}/#{I18n.t('routes.simple')}", simple_path assert_equal "/#{locale}/complex/1/2", complex_path(1, 2) assert_equal "/#{locale}/#{I18n.t('routes.resources')}", resources_path end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
translatable_routes-1.3.2 | test/helpers_test.rb |
translatable_routes-1.3.0 | test/helpers_test.rb |