Sha256: 9781261fc1899fd1731d9f16e182643d6a0d7c185419035cb4de4c3c81a18029
Contents?: true
Size: 574 Bytes
Versions: 11
Compression:
Stored size: 574 Bytes
Contents
require 'spec_helper' describe "the git deploy strategy" do subject do EY::Serverside::Strategies::Git.new( test_shell, :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
11 entries across 11 versions & 1 rubygems