Sha256: ed707e022e9a88963a25220e2742919bd1a81b9625d68bf52f28dff81c024cdf
Contents?: true
Size: 269 Bytes
Versions: 1
Compression:
Stored size: 269 Bytes
Contents
describe "missed default values" do subject do class Test::Foo extend Dry::Initializer param :foo, default: proc { :FOO } param :bar end end it "raises SyntaxError" do expect { subject }.to raise_error SyntaxError, /bar/ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-initializer-0.0.1 | spec/dry/missed_default_spec.rb |