Sha256: d572adc92b0e57fdf4634cf05a3a2935707561b7793193518ca5849a48363fc9

Contents?: true

Size: 371 Bytes

Versions: 16

Compression:

Stored size: 371 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 }
  it{ is_expected.to define_attribute :format }
  its(:registered_type){ is_expected.to eql :string }
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
json-schema_builder-0.8.2 spec/unit/string_spec.rb
json-schema_builder-0.8.1 spec/unit/string_spec.rb
json-schema_builder-0.8.0 spec/unit/string_spec.rb
json-schema_builder-0.7.1 spec/unit/string_spec.rb
json-schema_builder-0.7.0 spec/unit/string_spec.rb
json-schema_builder-0.6.1 spec/unit/string_spec.rb
json-schema_builder-0.6.0 spec/unit/string_spec.rb
json-schema_builder-0.5.0 spec/unit/string_spec.rb
json-schema_builder-0.4.0 spec/unit/string_spec.rb
json-schema_builder-0.3.1 spec/unit/string_spec.rb
json-schema_builder-0.3.0 spec/unit/string_spec.rb
json-schema_builder-0.2.1 spec/unit/string_spec.rb
json-schema_builder-0.2.0 spec/unit/string_spec.rb
json-schema_builder-0.1.0 spec/unit/string_spec.rb
json-schema_builder-0.0.9 spec/unit/string_spec.rb
json-schema_builder-0.0.8 spec/unit/string_spec.rb