Sha256: be795ecd76bacdb779804dcd214436208180f2f34640dd0e67af4a24b69669ab
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 Bytes
Contents
describe JsonTestData::String do describe ".create" do context "normal" do let(:object) do { type: "string" } end it "returns 'a'" do expect(described_class.create(object)).to eq "a" end end context "with maximum length" do let(:object) do { type: "string", maxLength: 2 } end it "returns 'aa'" do expect(described_class.create(object)).to eq "aa" end end context "with minimum length" do let(:object) do { type: "string", minLength: 8 } end it "returns 'aaaaaaaa'" do expect(described_class.create(object)).to eq "aaaaaaaa" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
json_test_data-0.1.0 | spec/json_test_data/data_structures/string_spec.rb |