Sha256: 913ada26b7ac2115dd58d9d9b7d4ab89b44c1608ae0d677cea50c1cce4a90f61
Contents?: true
Size: 742 Bytes
Versions: 1
Compression:
Stored size: 742 Bytes
Contents
require 'spec_helper' describe Swearjar do it "should detect dirty words" do Swearjar.default.profane?('fuck you jim henson').should be_true end it "should not detect non-dirty words" do Swearjar.default.profane?('i love you jim henson').should be_false end it "should give us a scorecard" do Swearjar.default.scorecard('fuck you jim henson').should == {:sexual=>1} end it "should detect multiword" do Swearjar.default.scorecard('jim henson has a hard on').should == {:sexual=>1} end it "should censor a string" do Swearjar.default.censor('jim henson has a massive hard on he is gonna use to fuck everybody').should == 'jim henson has a massive **** ** he is gonna use to **** everybody' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swearjar-0.0.1 | spec/swearjar_spec.rb |