Sha256: 28c44a4547b2b2a0127ce35de4f33a18ede67e28d455a6ffe031ff7399871444

Contents?: true

Size: 386 Bytes

Versions: 23

Compression:

Stored size: 386 Bytes

Contents

require "spec_helper"

describe String do

  it "acts as proxy for StringMaster using #prep method" do
    "<b>This</b> is quite a long text".prep do |s|
      s.cut(11, 7, :append => '...')
      s.html_escape
    end.should == "&lt;b&gt;This...&lt;/b&gt;"
    "<b>This</b> is quite a long text".prep.cut(11, 7, :append => '...').html_escape == "&lt;b&gt;This...&lt;/b&gt;"
  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
string_master-0.4.0 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.19 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.18 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.17 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.16 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.15 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.14 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.13 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.12 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.11 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.10 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.9 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.8 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.7 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.6 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.5 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.4 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.3 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.2 spec/lib/string_master/string_master_proxy_spec.rb
string_master-0.3.1 spec/lib/string_master/string_master_proxy_spec.rb