Sha256: f44e5daaabff7aaca1051a41390d58a98faae22853dc5e4356067c7e3e350c39

Contents?: true

Size: 271 Bytes

Versions: 24

Compression:

Stored size: 271 Bytes

Contents

RSpec.describe Dry::Validation::Schema, 'default settings' do
  subject(:schema) do
    Dry::Validation.Schema(build: false) do
      required(:name).filled
    end
  end

  it 'uses :yaml messages by default' do
    expect(schema.config.messages).to be(:yaml)
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
dry-validation-0.13.3 spec/integration/schema/default_settings_spec.rb
dry-validation-0.13.2 spec/integration/schema/default_settings_spec.rb
dry-validation-0.13.1 spec/integration/schema/default_settings_spec.rb
dry-validation-0.11.2 spec/integration/schema/default_settings_spec.rb
dry-validation-0.12.3 spec/integration/schema/default_settings_spec.rb
dry-validation-0.13.0 spec/integration/schema/default_settings_spec.rb
dry-validation-0.12.2 spec/integration/schema/default_settings_spec.rb
dry-validation-0.12.1 spec/integration/schema/default_settings_spec.rb
dry-validation-0.12.0 spec/integration/schema/default_settings_spec.rb
dry-validation-0.11.1 spec/integration/schema/default_settings_spec.rb
dry-validation-0.11.0 spec/integration/schema/default_settings_spec.rb
dry-validation-0.10.7 spec/integration/schema/default_settings_spec.rb
dry-validation-0.10.6 spec/integration/schema/default_settings_spec.rb
dry-validation-0.10.5 spec/integration/schema/default_settings_spec.rb
dry-validation-0.10.4 spec/integration/schema/default_settings_spec.rb
dry-validation-0.10.3 spec/integration/schema/default_settings_spec.rb
dry-validation-0.10.2 spec/integration/schema/default_settings_spec.rb
dry-validation-0.10.1 spec/integration/schema/default_settings_spec.rb
dry-validation-0.10.0 spec/integration/schema/default_settings_spec.rb
dry-validation-0.9.5 spec/integration/schema/default_settings_spec.rb