Sha256: 1b9c757aea8ad8c5e48f51523110cc66df6a2d2a6c6ac138fbbcc09f086c63ea

Contents?: true

Size: 575 Bytes

Versions: 2

Compression:

Stored size: 575 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::Roman,
        Tataki::Converter::Alphabet,
        Tataki::Converter::Combine,
        Tataki::Converter::SkkJisyo,
      ])
    end
  end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tataki-0.0.3 spec/tataki_spec.rb
tataki-0.0.2 spec/tataki_spec.rb