Sha256: 543657ebd33636e6030ac144646928c5b184e146236c36703cf2e7f32cc87122

Contents?: true

Size: 240 Bytes

Versions: 9

Compression:

Stored size: 240 Bytes

Contents

describe "invalid default value assignment" do
  subject do
    class Test::Foo
      extend Dry::Initializer

      param :foo, default: 1
    end
  end

  it "raises TypeError" do
    expect { subject }.to raise_error TypeError
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dry-initializer-3.0.2 spec/invalid_default_spec.rb
dry-initializer-3.0.1 spec/invalid_default_spec.rb
dry-initializer-3.0.0 spec/invalid_default_spec.rb
dry-initializer-2.5.0 spec/invalid_default_spec.rb
dry-initializer-2.4.0 spec/invalid_default_spec.rb
dry-initializer-2.3.0 spec/invalid_default_spec.rb
dry-initializer-2.2.0 spec/invalid_default_spec.rb
dry-initializer-2.1.0 spec/invalid_default_spec.rb
dry-initializer-2.0.0 spec/invalid_default_spec.rb