Sha256: 6bbf655542e8e77abedbe78496930b73d6e84234b06c9df14780ad8bd3450067
Contents?: true
Size: 398 Bytes
Versions: 1
Compression:
Stored size: 398 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' include Rosette::Core describe PhraseToHash do describe '#to_h' do it 'returns a hash of the appropriate attributes' do TestPhrase.new('key', 'meta key', 'file', 'commit id') do |t| expect(t.to_h).to eq({ 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/phrase/phrase_to_hash_spec.rb |