spec/unit/berkshelf/dependency_spec.rb in berkshelf-3.0.0.beta1 vs spec/unit/berkshelf/dependency_spec.rb in berkshelf-3.0.0.beta2
- old
+ new
@@ -212,16 +212,9 @@
[:constraint, :locked_version, :site, :git, :ref, :path].each do |key|
expect(hash).to_not have_key(key)
end
end
- it 'includes the constraint' do
- subject.version_constraint = '~> 1.0.0'
-
- expect(hash).to have_key(:constraint)
- expect(hash[:constraint]).to eq('~> 1.0.0')
- end
-
it 'includes the locked version' do
subject.stub(cached_cookbook: double('cached', version: '1.2.3'))
expect(hash).to have_key(:locked_version)
expect(hash[:locked_version]).to eq('1.2.3')