Sha256: 35b8aeeb388601cfde8f61f2b697b3bdd8b424991388a01369ac7f61f36fb1e4
Contents?: true
Size: 431 Bytes
Versions: 7
Compression:
Stored size: 431 Bytes
Contents
require 'epitools/clitools' 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
7 entries across 7 versions & 1 rubygems