Sha256: e6da7e0397261ada876305113479ba76f260a93c7ddce1e8ac9f7b96ca893d1f

Contents?: true

Size: 234 Bytes

Versions: 1

Compression:

Stored size: 234 Bytes

Contents

describe "invalid type declaration" do
  subject do
    class Test::Foo
      extend Dry::Initializer

      param :foo, type: 1
    end
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

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