File: base_spec.rb

package info (click to toggle)
ruby-babosa 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 440 kB
  • sloc: ruby: 1,586; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 361 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require "spec_helper"

describe Babosa::Transliterator::Base do
  let(:t) { Babosa::Transliterator::Base.instance }

  it "should transliterate 'smart' quotes" do
    expect(t.transliterate("’")).to eql("'")
  end

  it "should transliterate non-breaking spaces" do
    expect(t.transliterate("\xc2\xa0")).to eql(" ")
  end
end