spec/swearjar_spec.rb in swearjar-1.1.0 vs spec/swearjar_spec.rb in swearjar-1.1.1

- old
+ new

@@ -79,9 +79,13 @@ it "detects scorecard with regular expression matching" do expect(Swearjar.default.scorecard("foonIgg3rbar foo nigger")).to eq({"discriminatory" => 2}) end - xit "doesn't substitute simple words when they occur later as substrings" do + it "substitutes multiple occurrences of a word" do + expect(Swearjar.default.censor("anus anus anuses")).to eq("**** **** ******") + end + + it "doesn't substitute simple words when they occur later as substrings" do expect(Swearjar.default.censor("anus janus")).to eq("**** janus") end end