require 'spec_helper' describe SwearJar do context "arsehole" do it "is profanity" do SwearJar["profanity"].profane?("arsehole").should be_true end end context "marijuana" do it "is inappropriate" do SwearJar["inappropriate"].profane?("marijuana").should be_true end end context "freaky" do it "is questionable" do SwearJar["questionable"].profane?("freaky").should be_true end end context "offer" do it "is needs review" do SwearJar["needs_review"].profane?("offer").should be_true end end context "death" do it "is assault" do SwearJar["assault"].profane?("death").should be_true end end end