Sha256: f489f59c5149cfc08118a1e2db08f87ffe9c4f155bb77c996cfb7b66be32173a
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 Bytes
Contents
describe "base example" do before do class Test::Foo include Dry::Initializer.define { param :foo param :bar option :baz option :qux } end end it "instantiates attributes" do subject = Test::Foo.new(1, 2, baz: 3, qux: 4) expect(subject.foo).to eql 1 expect(subject.bar).to eql 2 expect(subject.baz).to eql 3 expect(subject.qux).to eql 4 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-initializer-0.1.0 | spec/dry/container_spec.rb |