# encoding: utf-8
require File.expand_path("../../spec_helper", __FILE__)

describe Babosa::Transliterator::Norwegian do

  let(:t) { described_class.instance }
  it_behaves_like "a latin transliterator"

  it "should transliterate various characters" do
    examples = {
      "Øivind" => "Oeivind",
      "Bø"     => "Boe",
      "Åre"    => "Aare",
      "Håkon"  => "Haakon"
    }
    examples.each {|k, v| t.transliterate(k).should eql(v)}
  end
end
