Sha256: 9346f2a7a00aa3d9760c69fb6af3b8eb5eb3cbc115a9026d085acb1f764c14eb

Contents?: true

Size: 523 Bytes

Versions: 44

Compression:

Stored size: 523 Bytes

Contents

require 'test_helper'

module Workarea
  class I18nHelperTest < ViewTest
    def test_switch_locale_fields
      params[:utf8] = 'check'
      params[:controller] = 'controller'
      params[:action] = 'action'
      params[:foo] = 'bar'

      assert_includes(switch_locale_fields, 'foo')
      assert_includes(switch_locale_fields, 'bar')
      refute_includes(switch_locale_fields, 'utf8')
      refute_includes(switch_locale_fields, 'controller')
      refute_includes(switch_locale_fields, 'action')
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
workarea-core-3.4.45 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.44 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.43 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.42 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.41 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.40 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.39 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.38 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.37 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.36 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.35 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.34 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.33 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.32 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.31 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.8 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.30 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.7 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.4.29 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.6 test/helpers/workarea/i18n_helper_test.rb