Sha256: c290a40271a26c2036629c6bfc434927782321b64ac9b4a4dec3566095ed878c

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

require 'spec/spec_helper'

describe Pedantic::Punctuation do
  it "replaces can't with cannot" do
    Pedantic.fix("can't foo").should == 'cannot foo'
  end
  
  it "removes other apostrophes" do
    Pedantic.fix("isn't it foo").should == 'foo'
  end
  
  it "replaces sh*t with shit" do
    Pedantic.fix('sh*t').should == 'shit'
  end
  
  it "replaces f**k and f*ck with fuck" do
    Pedantic.fix('f**k f*ck').should == 'fuck fuck'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pedantic-0.1.1 spec/pedantic/punctuation_spec.rb
pedantic-0.1.0 spec/pedantic/punctuation_spec.rb