Sha256: 6714607bada6642fa87bbb5eadeb52674f59bf6dfadc96a70375030d0bdd378d

Contents?: true

Size: 389 Bytes

Versions: 56

Compression:

Stored size: 389 Bytes

Contents

require File.join(File.dirname(__FILE__), '../test_helper.rb')

class LocalizationTest < Test::Unit::TestCase

  def test_localization
    assert_equal "Dutch", as_(:dutch)
    assert_equal "dutch", as_('dutch')
    I18n.backend.store_translations :en, :active_scaffold => {:create_model => 'Create %{model}'}
    assert_equal "Create Test", as_(:create_model, :model => 'Test')
  end
end

Version data entries

56 entries across 56 versions & 3 rubygems

Version Path
active_scaffold-sequel-0.8.0 test/misc/lang_test.rb
active_scaffold-sequel-0.7.1 test/misc/lang_test.rb
active_scaffold-sequel-0.7.0 test/misc/lang_test.rb
active_scaffold-sequel-0.6.2 test/misc/lang_test.rb
active_scaffold-sequel-0.6.1 test/misc/lang_test.rb
active_scaffold-sequel-0.6.0 test/misc/lang_test.rb
active_scaffold-3.3.2 test/misc/lang_test.rb
active_scaffold-3.3.1 test/misc/lang_test.rb
active_scaffold-3.3.0 test/misc/lang_test.rb
active_scaffold-3.2.20 test/misc/lang_test.rb
brisk-bills-0.8.2 vendor/plugins/active_scaffold/test/misc/lang_test.rb
active_scaffold-3.3.0.rc3 test/misc/lang_test.rb
active_scaffold-3.3.0.rc2 test/misc/lang_test.rb
brisk-bills-0.8.1 vendor/plugins/active_scaffold/test/misc/lang_test.rb
active_scaffold-3.2.19 test/misc/lang_test.rb
active_scaffold-3.2.18 test/misc/lang_test.rb
active_scaffold-3.3.0.rc test/misc/lang_test.rb
active_scaffold-3.2.17 test/misc/lang_test.rb
active_scaffold-3.2.16 test/misc/lang_test.rb
active_scaffold-3.2.15 test/misc/lang_test.rb