Sha256: ff0c166c1661d6a96b025800df481e32301b9d21dd53c70529f51e9ae4aa12f3

Contents?: true

Size: 663 Bytes

Versions: 2

Compression:

Stored size: 663 Bytes

Contents

require 'spec_helper'
require 'generators/i18n_translation/i18n_translation_generator'

describe I18nTranslationGenerator do
  subject { I18nTranslationGenerator.new(['ja']) }

  describe 'each_value' do
    xit 'iterates through each value' do
      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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
i18n_generators-1.2.1 spec/i18n_translation_command_spec.rb
i18n_generators-1.2.0 spec/i18n_translation_command_spec.rb