Sha256: 19adce672684fa57156230eb4e2aa20650617d4b279fed2e8fb28af2030c1449
Contents?: true
Size: 772 Bytes
Versions: 16
Compression:
Stored size: 772 Bytes
Contents
require "librarian/manifest" describe Librarian::Manifest do describe "validations" do context "when the name is blank" do it "raises" do expect { described_class.new(nil, "") }. to raise_error(ArgumentError, %{name ("") must be sensible}) end end context "when the name has leading whitespace" do it "raises" do expect { described_class.new(nil, " the-name") }. to raise_error(ArgumentError, %{name (" the-name") must be sensible}) end end context "when the name has trailing whitespace" do it "raises" do expect { described_class.new(nil, "the-name ") }. to raise_error(ArgumentError, %{name ("the-name ") must be sensible}) end end end end
Version data entries
16 entries across 16 versions & 2 rubygems