Sha256: c6712e3fbcb9fdc93b0d75e8e806c76653611943e20203f46d25e9dda9a9b491
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 KB
Contents
require "spec_helper" module Kosher describe String do def this(val) Kosher::String.new(val) end it "validates a blank description" do this("").should be_kosher end it "validates a non-blank description" do this("foo").should be_kosher end it "does not validate advance reviews" do this("Uncorrected review copy").should_not be_kosher this("arc").should_not be_kosher this("arc.").should_not be_kosher this("marc").should be_kosher end it "does not validate marked books" do this("Some highlighting").should_not be_kosher this("Underlining.").should_not be_kosher this("Good. Hiliting.").should_not be_kosher this("No highlighting.").should be_kosher end it "does not validate books with missing volumes" do this("First vol only.").should_not be_kosher end it "does not validate damaged or worn books" do this("Torn pages").should_not be_kosher end it "does not validate withdrawn library copies" do this("xlib").should_not be_kosher this("ex-library").should_not be_kosher this("retired library copy").should_not be_kosher this("Not an ex-library").should be_kosher end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kosher-0.0.2 | spec/kosher/string_spec.rb |
kosher-0.0.1 | spec/kosher/string_spec.rb |