Sha256: f15f42e1d2d06cf31d4cace6c67e8e7beef3085b184292fd4d2729dcc7d2051b

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 Bytes

Contents

# coding: utf-8
require "spec_helper"

describe Tataki do
  it "has a version number" do
    Tataki::VERSION.should_not be_nil
  end

  describe ".converters" do
    it "returns converters" do
      expect(Tataki.converters).to match_array([
        Tataki::Converter::Alphabet,
        Tataki::Converter::Combine,
        Tataki::Converter::SkkJisyo,
      ])
    end
  end

  describe "String.to_kana" do
    before { require "tataki" }

    it "converts to kana" do
      expect("X線研究者".to_kana).to eq("えっくすせんけんきゅうしゃ")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tataki-0.0.4 spec/tataki_spec.rb