spec/unit/solve/artifact_spec.rb in solve-3.1.1 vs spec/unit/solve/artifact_spec.rb in solve-4.0.0
- old
+ new
@@ -1,14 +1,14 @@
-require 'spec_helper'
+require "spec_helper"
describe Solve::Artifact do
let(:graph) do
- package = double('package')
- package_version = double('package_version')
+ package = double("package")
+ package_version = double("package_version")
package_version.stub(:dependencies).and_return([])
package.stub(:add_version).and_return(package_version)
- double('graph', dep_graph: double('dep_graph', package: package))
+ double("graph", dep_graph: double("dep_graph", package: package))
end
let(:name) { "league" }
let(:version) { "1.0.0" }
subject { Solve::Artifact.new(graph, name, version) }
@@ -49,10 +49,10 @@
let(:artifacts) do
[
one,
two,
- three
+ three,
].shuffle
end
it "orders artifacts by their version number" do
sorted = artifacts.sort