spec/unit/settings/collection_spec.rb in r10k-2.2.2 vs spec/unit/settings/collection_spec.rb in r10k-2.3.0

- old
+ new

@@ -9,18 +9,19 @@ subject do described_class.new(:collection, [symbol_defn, default_defn]) end + it_behaves_like "a setting with ancestors" + describe "#evaluate" do it "assigns values, validates them, and resolves a final value" do expect(subject).to receive(:assign).with({:default_defn => :squid}) expect(subject).to receive(:validate) expect(subject).to receive(:resolve) subject.evaluate({:default_defn => :squid}) end end - describe '#assign' do it "assigns values to the appropriate setting" do subject.assign({:symbol_defn => :hello}) expect(symbol_defn.value).to eq :hello