Sha256: b23c0f00673caf6479308ac49c452fadce5c81a5778b54a6d1f9eb3a92a9911d
Contents?: true
Size: 572 Bytes
Versions: 76
Compression:
Stored size: 572 Bytes
Contents
require 'spec_helper' describe "the git deploy strategy" do subject do EY::Serverside::Strategies::Git.new(:repo => File.join(GITREPO_DIR, 'git'), :repository_cache => GITREPO_DIR, :ref => "master") end before { subject.checkout } it "#checkout returns true for branches that exist" do subject.opts[:ref] = "somebranch" subject.checkout.should be_true end it "#checkout returns false for branches that do not exist" do subject.opts[:ref] = "notabranch" subject.checkout.should be_false end end
Version data entries
76 entries across 76 versions & 1 rubygems