Sha256: 964004235eb7905db0374a777ef174c77d90939a48794298da41f5c0e26bba04

Contents?: true

Size: 706 Bytes

Versions: 6

Compression:

Stored size: 706 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe "the git deploy strategy" do
  subject do
    EY::Serverside::Strategies::Git.new(:repo => File.expand_path("../fixtures/gitrepo/.git", __FILE__),
                            :repository_cache => File.expand_path("../fixtures/gitrepo", __FILE__),
                            :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

6 entries across 6 versions & 1 rubygems

Version Path
engineyard-serverside-1.4.9.nodestack spec/git_strategy_spec.rb
engineyard-serverside-1.4.8.nodestack spec/git_strategy_spec.rb
engineyard-serverside-1.4.7.pre spec/git_strategy_spec.rb
engineyard-serverside-1.4.3.nodestack spec/git_strategy_spec.rb
engineyard-serverside-1.4.1 spec/git_strategy_spec.rb
engineyard-serverside-1.4.0 spec/git_strategy_spec.rb