Sha256: 467fd9a9c5ead339961a9ed2a581d0ad58a9b7bb575bac74d0eccfbc15e1e9f7
Contents?: true
Size: 611 Bytes
Versions: 2
Compression:
Stored size: 611 Bytes
Contents
#encoding: utf-8 require 'spec_helper' using Itaiji::Conversions describe Itaiji::Conversions do let(:itaiji_text) { '齊藤正澔' } let(:seijitai_text) { '斉藤正浩' } let(:converter) { Itaiji::Converter.new } describe '#to_seijitai' do it 'converts name from itaiji to seijitai' do expect { itaiji_text.to_seijitai }.to change{ itaiji_text }.to seijitai_text end end describe '#convert_itaiji' do it 'converts name from seijitai to itaiji' do expect { seijitai_text.to_itaiji }.to change{ seijitai_text }.to itaiji_text end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
itaiji-0.1.4 | spec/lib/itaiji/core_ext/string/conversions_spec.rb |
itaiji-0.1.3 | spec/lib/itaiji/core_ext/string/conversions_spec.rb |