spec/swearjar_spec.rb in swearjar-0.0.4 vs spec/swearjar_spec.rb in swearjar-0.1.0
- old
+ new
@@ -18,18 +18,18 @@
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}
+ 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}
+ Swearjar.default.scorecard('jim henson has a hard on').should == {'sexual'=>1}
end
it "should detect multiword plurals" do
- Swearjar.default.scorecard('jim henson has a hard ons').should == {:sexual=>1}
+ Swearjar.default.scorecard('jim henson has a hard ons').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
\ No newline at end of file