Sha256: 828c0484e8e266ee9b411c3a3dd5c99d15b4c422e0f8b45aa2fd14d5d09dded4

Contents?: true

Size: 606 Bytes

Versions: 18

Compression:

Stored size: 606 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'
      params[:locale] = 'es'

      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')
      refute_includes(switch_locale_fields, 'locale')
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
workarea-core-3.5.27 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.26 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.25 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.23 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.22 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.21 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.20 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.19 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.18 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.17 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.16 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.15 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.14 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.13 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.12 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.11 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.10 test/helpers/workarea/i18n_helper_test.rb
workarea-core-3.5.9 test/helpers/workarea/i18n_helper_test.rb