Sha256: 4cdc7ee8a6b73c9c4cdab071f8a2418c02337dbe6446df67c919cb8c917e91bd

Contents?: true

Size: 541 Bytes

Versions: 8

Compression:

Stored size: 541 Bytes

Contents

# encoding: utf-8

require_relative 'spec_helper'

describe EvilFront::English do

  describe 'typograph' do

    it 'changes quotes' do
      EvilFront::English.typograph('"a".').should == '“a”.'
    end

    it 'changes dashes' do
      EvilFront::English.typograph('a - b').should == 'a - b'
    end

    it 'changes ellipsis' do
      EvilFront::English.typograph('a...').should == 'a…'
    end

    it 'inserts non-break spaces' do
      EvilFront::English.typograph('he is a hero').should == 'he is a hero'
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
evil-front-0.3.5 spec/english_spec.rb
evil-front-0.3.4 spec/english_spec.rb
evil-front-0.3.3 spec/english_spec.rb
evil-front-0.3.2 spec/english_spec.rb
evil-front-0.3.1 spec/english_spec.rb
evil-front-0.3.0 spec/english_spec.rb
evil-front-0.2.1 spec/english_spec.rb
evil-front-0.2.0 spec/english_spec.rb