Sha256: 341f33fc70e17a028fbc17fff73c0484e8f7623dc43eb2fc3103cc4b297236d6

Contents?: true

Size: 735 Bytes

Versions: 7

Compression:

Stored size: 735 Bytes

Contents

require 'spec_helper'

describe Orthotypo::Composer::En do
  it 'removes spaces before double punctuation marks' do
    expect("mot: suite".ortho(locale: 'en')).to eq "mot: suite"
    expect("mot : suite".ortho(locale: 'en')).to eq "mot: suite"
    expect("é: suite".ortho(locale: 'en')).to eq "é: suite"
    expect("é : suite".ortho(locale: 'en')).to eq "é: suite"
    expect("1: suite".ortho(locale: 'en')).to eq "1: suite"
    expect("1 : suite".ortho(locale: 'en')).to eq "1: suite"
    expect("mot; suite".ortho(locale: 'en')).to eq "mot; suite"
    expect("mot ; suite".ortho(locale: 'en')).to eq "mot; suite"
    expect("mot!".ortho(locale: 'en')).to eq "mot!"
    expect("mot !".ortho(locale: 'en')).to eq "mot!"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
orthotypo-1.0.4 spec/composer/en_spec.rb
orthotypo-1.0.3 spec/composer/en_spec.rb
orthotypo-1.0.2 spec/composer/en_spec.rb
orthotypo-1.0.1 spec/composer/en_spec.rb
orthotypo-1.0.0 spec/composer/en_spec.rb
orthotypo-0.6.0 spec/composer/en_spec.rb
orthotypo-0.5.1 spec/composer/en_spec.rb