Sha256: 42d4a9598ff835d9532bdaac71abf1c31fb1d194a051b3e692c3b7445a68f513
Contents?: true
Size: 254 Bytes
Versions: 2
Compression:
Stored size: 254 Bytes
Contents
describe "invalid default value assignment" do subject do class Test::Foo extend Dry::Initializer::Mixin param :foo, default: 1 end end it "raises TypeError" do expect { subject }.to raise_error SyntaxError, /1/ end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dry-initializer-0.1.1 | spec/dry/invalid_default_spec.rb |
dry-initializer-0.1.0 | spec/dry/invalid_default_spec.rb |