Sha256: da6ce1ac81b3dfb5c24a1f6d7d226d6f72bc9e8d25504566ea5f2d117e928197

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 Bytes

Contents

require 'spec_helper'
using Itaiji::Conversions

describe Itaiji::Conversions do
  let(:itaiji) { '齊藤正澔' }
  let(:seijitai) { '斉藤正浩' }
  let(:converter) { Itaiji::Converter.new }

  describe '#to_seijitai' do
    it 'converts name from itaiji to seijitai' do
      expect(itaiji.to_seijitai).to eq seijitai
    end
  end

  describe '#to_itaiji' do
    it 'converts name from seijitai to itaiji' do
      expect(seijitai.to_itaiji).to eq itaiji
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itaiji-1.0.0 spec/lib/itaiji/core_ext/string/conversions_spec.rb