Sha256: 0aa041d867e57e17dc19bbb56b30e8abd3c28b86200044c2d7e0f49edf8c9174
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
require 'spec/spec_helper' describe Pedantic do describe '.fix' do it "removes leading and trailing spaces" do Pedantic.fix(' foo ').should == 'foo' end it "replaces multiple spaces with a single space" do Pedantic.fix('foo bar').should == 'foo bar' end it "replaces new lines with spaces" do Pedantic.fix("foo\nbar").should == 'foo bar' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pedantic-0.1.1 | spec/pedantic_spec.rb |
pedantic-0.1.0 | spec/pedantic_spec.rb |