Sha256: ec32efff6ee1f0de401dc12b24570704e9e403847e84d27ab9a47f0122978010
Contents?: true
Size: 954 Bytes
Versions: 1
Compression:
Stored size: 954 Bytes
Contents
require_relative "../../spec_helper" require_relative "../../../lib/vendorise/arborist" module Vendorise describe Arborist do describe :subtree_command do subject { Arborist.new "foo/bar", "git@github.com:New-Bamboo/vendorise.git" } context "when #subtree_already_exists? is false" do before { allow(subject).to receive(:subtree_already_exists?).and_return(false) } it "is git subtree add" do expect(subject.subtree_command).to eq "git subtree add --prefix foo/bar git@github.com:New-Bamboo/vendorise.git master --squash" end end context "when #subtree_already_exists? is true" do before { allow(subject).to receive(:subtree_already_exists?).and_return(true) } it "is git subtree pull" do expect(subject.subtree_command).to eq "git subtree pull --prefix foo/bar git@github.com:New-Bamboo/vendorise.git master --squash" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vendorise-0.2.0 | spec/lib/vendorise/arborist_spec.rb |