spec/unit/berkshelf/locations/git_location_spec.rb in berkshelf-1.0.0.rc1 vs spec/unit/berkshelf/locations/git_location_spec.rb in berkshelf-1.0.0.rc2
- old
+ new
@@ -1,11 +1,11 @@
require 'spec_helper'
module Berkshelf
describe GitLocation do
let(:complacent_constraint) { double('comp-vconstraint', satisfies?: true) }
-
+
describe "ClassMethods" do
subject { GitLocation }
describe "::initialize" do
it "raises InvalidGitURI if given an invalid Git URI for options[:git]" do
@@ -84,10 +84,10 @@
end
end
context "given a value for ref that is a tag or branch and not a commit hash" do
subject do
- GitLocation.new("artifact",
+ GitLocation.new("artifact",
complacent_constraint,
git: "git://github.com/RiotGames/artifact-cookbook.git",
ref: "0.9.8"
)
end