Sha256: d7e2da66608467322f8705ef26013d1825a5ebe16dfaec7d02bd76d9e55354f5
Contents?: true
Size: 315 Bytes
Versions: 1
Compression:
Stored size: 315 Bytes
Contents
describe "default nil" do before do class Test::Foo extend Dry::Initializer param :foo, default: proc { nil } param :bar, default: proc { nil } end end it "is assigned" do subject = Test::Foo.new(1) expect(subject.foo).to eql 1 expect(subject.bar).to be_nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-initializer-0.0.1 | spec/dry/default_nil_spec.rb |