Sha256: 50befc7404c74af0b3c4bc17c078c4504774cf104aeedcae4bccc8db58a20e24

Contents?: true

Size: 643 Bytes

Versions: 6

Compression:

Stored size: 643 Bytes

Contents

require 'test_helper'
require 'generators/i18n_translation/i18n_translation_generator'

class I18nTranslationGeneratorTest < Test::Unit::TestCase
  setup do
    @generator = I18nTranslationGenerator.new(['ja'])
  end

  test 'each_value' do
    pend

    hash = ActiveSupport::OrderedHash.new
    hash[:parent1] = ActiveSupport::OrderedHash.new
    hash[:parent1][:child1] = 'child one'
    hash[:parent2] = ActiveSupport::OrderedHash.new
    hash[:parent2][:child2] = 'child two'
    hash[:parent2][:child3] = 'child three'
    subject.send(:each_value, [], hash) do |parents, value|
      p "#{parents.join('.')} #{value}"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
i18n_generators-2.2.2 test/i18n_translation_command_test.rb
i18n_generators-2.2.1 test/i18n_translation_command_test.rb
i18n_generators-2.2.0 test/i18n_translation_command_test.rb
i18n_generators-2.1.1 test/i18n_translation_command_test.rb
i18n_generators-2.1.0 test/i18n_translation_command_test.rb
i18n_generators-2.0.0 test/i18n_translation_command_test.rb