spec/unit/solve/graph_spec.rb in solve-3.1.1 vs spec/unit/solve/graph_spec.rb in solve-4.0.0
- old
+ new
@@ -70,16 +70,16 @@
end
end
describe "#versions" do
before do
- subject.artifact('nginx', '1.0.0')
- subject.artifact('nginx', '2.0.0')
- subject.artifact('nginx', '3.0.0')
- subject.artifact('nginx', '4.0.0')
+ subject.artifact("nginx", "1.0.0")
+ subject.artifact("nginx", "2.0.0")
+ subject.artifact("nginx", "3.0.0")
+ subject.artifact("nginx", "4.0.0")
- subject.artifact('other', '1.0.0')
+ subject.artifact("other", "1.0.0")
end
it "returns all the artifacts matching the given name" do
expect(subject.versions("nginx").size).to eq(4)
end
@@ -96,11 +96,11 @@
end
describe "==" do
def make_graph
graph = Solve::Graph.new
- graph.artifact("A" ,"1.0.0").depends("B", "1.0.0")
- graph.artifact("A" ,"2.0.0").depends("C", "1.0.0")
+ graph.artifact("A" , "1.0.0").depends("B", "1.0.0")
+ graph.artifact("A" , "2.0.0").depends("C", "1.0.0")
graph
end
subject { make_graph }