Sha256: 3f7530be57dabe32d7160f3eb2eae64bfa53162603bf4d5d6175ae91b256620c
Contents?: true
Size: 725 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solve-4.0.0 | spec/unit/solve/dependency_spec.rb |