Sha256: 4e6521781d08e8cf8ceaad98809d080c95218609121002888e4c339a888500c2

Contents?: true

Size: 253 Bytes

Versions: 15

Compression:

Stored size: 253 Bytes

Contents

require 'spec_helper'

describe String do
  describe "#wrap" do
    let(:string) { "One two three four five" }

    it { string.wrap(1).should == "One\ntwo\nthree\nfour\nfive" }
    it { string.wrap(10).should == "One two\nthree four\nfive" }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tp-0.7.0 spec/lib/string_spec.rb
tp-0.6.2 spec/lib/string_spec.rb
tp-0.6.2pre2 spec/lib/string_spec.rb
tp-0.6.2pre1 spec/lib/string_spec.rb
tp-0.6.1 spec/lib/string_spec.rb
tp-0.6.0 spec/lib/string_spec.rb
tp-0.5.1 spec/lib/string_spec.rb
tp-0.5.0 spec/lib/string_spec.rb
tp-0.4.1 spec/lib/string_spec.rb
tp-0.4.0 spec/lib/string_spec.rb
tp-0.3.1 spec/lib/string_spec.rb
tp-0.3.0 spec/lib/string_spec.rb
tp-0.2.1 spec/lib/string_spec.rb
tp-0.2.0 spec/lib/string_spec.rb
tp-0.1.1 spec/lib/string_spec.rb