Sha256: 9c952b7b9d5b10a020257d2ce8c7394c6fa96b725286642df50f1df6ff26a643
Contents?: true
Size: 556 Bytes
Versions: 17
Compression:
Stored size: 556 Bytes
Contents
describe Card::Set::All::NameValidations, "validate name" do it "errors on name with /" do expect { create "testname/" } .to raise_error /Name may not contain/ end it "errors on junction name with /" do expect { create "jasmin+ri/ce" } .to raise_error /Name may not contain/ end it "does not allow empty name" do expect { create "" } .to raise_error /Name can't be blank/ end it "does not allow mismatched name and key" do expect { create "Test", key: "foo" } .to raise_error /wrong key/ end end
Version data entries
17 entries across 17 versions & 1 rubygems