Sha256: 054203a0b82bf390363bd862025db7f884ca4b8d992d07e8f0a85aea87399908
Contents?: true
Size: 431 Bytes
Versions: 3
Compression:
Stored size: 431 Bytes
Contents
require 'epitools/highlight' describe String do it "highlights" do color = :light_yellow highlighted = "xxx#{"match".send(color)}zzz" "xxxmatchzzz".highlight(/match/, color).should == highlighted "xxxmatchzzz".highlight("match", color).should == highlighted "xxxmatchzzz".highlight(/m.+h/, color).should == highlighted "xxxmatchzzz".highlight(/MATCH/i, color).should == highlighted end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
epitools-0.3.2 | spec/highlight_spec.rb |
epitools-0.3.1 | spec/highlight_spec.rb |
epitools-0.3.0 | spec/highlight_spec.rb |