Sha256: 627bbe8b17edde5febf20326cc0fac89560207349cef247d52444d49e803573d
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
# frozen_string_literal: true # # Copyright (c) 2019-present, Blue Marble Payroll, LLC # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # require 'spec_helper' describe Dbee::Model::Constraints do CONFIG = { name: :a }.freeze FACTORIES = { Dbee::Model::Constraints::Reference => CONFIG.merge(parent: :b, type: :reference), Dbee::Model::Constraints::Static => CONFIG.merge(value: :b, type: :static) }.freeze FACTORIES.each_pair do |constant, config| it "should instantiate #{constant} objects" do expect(described_class.make(config)).to be_a(constant) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dbee-1.0.0.pre.alpha | spec/dbee/model/constraints_spec.rb |