Sha256: 7b971d6f6ac8bbc479892edc70cfd7711435175f5e457871459b3eedd804bfa0

Contents?: true

Size: 342 Bytes

Versions: 9

Compression:

Stored size: 342 Bytes

Contents

require 'test_helper'

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
active_scaffold-3.7.11 test/misc/lang_test.rb
active_scaffold-3.7.10 test/misc/lang_test.rb
active_scaffold-3.7.8 test/misc/lang_test.rb
active_scaffold-3.7.7 test/misc/lang_test.rb
active_scaffold-3.7.6 test/misc/lang_test.rb
active_scaffold-3.7.5 test/misc/lang_test.rb
active_scaffold-3.7.2 test/misc/lang_test.rb
active_scaffold-3.7.1 test/misc/lang_test.rb
active_scaffold-3.7.0 test/misc/lang_test.rb