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-3.2.14 test/misc/lang_test.rb
active_scaffold-3.2.13 test/misc/lang_test.rb
active_scaffold-3.2.12 test/misc/lang_test.rb
active_scaffold-3.2.11 test/misc/lang_test.rb
active_scaffold-3.2.10 test/misc/lang_test.rb
active_scaffold-3.2.9 test/misc/lang_test.rb
active_scaffold-3.2.8 test/misc/lang_test.rb
active_scaffold-3.2.7 test/misc/lang_test.rb
active_scaffold-3.2.6 test/misc/lang_test.rb
active_scaffold-3.2.5 test/misc/lang_test.rb
active_scaffold-3.2.4 test/misc/lang_test.rb
active_scaffold-3.2.3 test/misc/lang_test.rb
active_scaffold-sequel-0.5.1 test/misc/lang_test.rb
active_scaffold-sequel-0.5.0 test/misc/lang_test.rb
active_scaffold-3.2.2 test/misc/lang_test.rb
active_scaffold-3.2.1 test/misc/lang_test.rb
active_scaffold-sequel-0.4.0 test/misc/lang_test.rb
active_scaffold-sequel-0.3.0 test/misc/lang_test.rb
active_scaffold-3.2.0 test/misc/lang_test.rb
active_scaffold-3.1.20 test/misc/lang_test.rb