Sha256: 7f6fdb0c4b373e0550562869b4b6d5270b2de385a9110e98b7b1dd2d62253ac1
Contents?: true
Size: 725 Bytes
Versions: 14
Compression:
Stored size: 725 Bytes
Contents
require 'spec_helper' describe Solve::Dependency do describe "#initialize" do it "uses a default of >= 0.0.0" do dep = Solve::Dependency.new(double("artifact"), "ntp") expect(dep.constraint.operator).to eq(">=") expect(dep.constraint.version.to_s).to eq("0.0.0") end end let(:artifact) { double('artifact') } let(:name) { 'nginx' } let(:constraint) { "~> 0.0.1" } subject { Solve::Dependency.new(artifact, name, constraint) } describe "#==" do it "returns true if the other object is an instance of Solve::Dependency with the same constraint and artifact" do other = Solve::Dependency.new(artifact, name, constraint) expect(subject).to eq(other) end end end
Version data entries
14 entries across 14 versions & 1 rubygems