Sha256: 465a1215d1907dece99e5c665c8f33bd5319935a1bcc54eec0663e6215edab1d
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' include Rosette::Core describe TranslationToHash do describe '#to_h' do let(:phrase) do TestPhrase.new('key', 'meta key', 'file', 'commit id') end it 'returns a hash of the appropriate attributes' do TestTranslation.new(translation: 'translation', locale: 'es', phrase: phrase) do |t| expect(t.to_h).to eq({ translation: 'translation', locale: 'es', phrase: { key: 'key', meta_key: 'meta key', file: 'file', commit_id: 'commit id' } }) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rosette-core-1.0.1 | spec/core/extractor/translation/translation_to_hash_spec.rb |