Sha256: aed517e79c5f442b81bdb75c549a857fc44348baaede4aa4938ce197aa6bb734

Contents?: true

Size: 323 Bytes

Versions: 7

Compression:

Stored size: 323 Bytes

Contents

require 'spec_helper'

RSpec.describe JSON::SchemaBuilder::String, type: :unit do
  subject{ described_class }

  it{ is_expected.to define_attribute :min_length }
  it{ is_expected.to define_attribute :max_length }
  it{ is_expected.to define_attribute :pattern }
  its(:registered_type){ is_expected.to eql :string }
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
json-schema_builder-0.0.7 spec/unit/string_spec.rb
json-schema_builder-0.0.6 spec/unit/string_spec.rb
json-schema_builder-0.0.5 spec/unit/string_spec.rb
json-schema_builder-0.0.4 spec/unit/string_spec.rb
json-schema_builder-0.0.3 spec/unit/string_spec.rb
json-schema_builder-0.0.2 spec/unit/string_spec.rb
json-schema_builder-0.0.1 spec/unit/string_spec.rb