Sha256: 2959d6ff4ab457192f8ea45a1908925a0ac977de58259a1440aeeab2e81b513c
Contents?: true
Size: 411 Bytes
Versions: 28
Compression:
Stored size: 411 Bytes
Contents
describe "base example" do before do class Test::Foo extend Dry::Initializer::Mixin 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
28 entries across 28 versions & 1 rubygems