Sha256: a4270bf33b9edef26f52bbb844653a8dcf273167d82ee1bb2753063875efe14e

Contents?: true

Size: 247 Bytes

Versions: 1

Compression:

Stored size: 247 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 SyntaxError, /1/
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dry-initializer-0.0.1 spec/dry/invalid_default_spec.rb