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

Version Path
engineyard-serverside-1.6.5 spec/git_strategy_spec.rb
engineyard-serverside-1.6.4 spec/git_strategy_spec.rb
engineyard-serverside-1.6.4.pre6 spec/git_strategy_spec.rb
engineyard-serverside-1.6.4.pre5 spec/git_strategy_spec.rb
engineyard-serverside-1.6.4.pre4 spec/git_strategy_spec.rb
engineyard-serverside-1.6.4.pre3 spec/git_strategy_spec.rb
engineyard-serverside-1.6.4.pre2 spec/git_strategy_spec.rb
engineyard-serverside-1.6.4.pre spec/git_strategy_spec.rb
engineyard-serverside-1.6.3 spec/git_strategy_spec.rb
engineyard-serverside-1.5.35.pre.2 spec/git_strategy_spec.rb
engineyard-serverside-1.5.35.pre.1 spec/git_strategy_spec.rb
engineyard-serverside-1.5.33 spec/git_strategy_spec.rb
engineyard-serverside-1.5.32 spec/git_strategy_spec.rb
engineyard-serverside-1.5.30 spec/git_strategy_spec.rb
engineyard-serverside-1.5.29.pre3 spec/git_strategy_spec.rb
engineyard-serverside-1.5.29.pre2 spec/git_strategy_spec.rb
engineyard-serverside-1.5.29.pre1 spec/git_strategy_spec.rb
engineyard-serverside-1.5.29.pre spec/git_strategy_spec.rb
engineyard-serverside-1.5.28 spec/git_strategy_spec.rb
engineyard-serverside-1.5.28.pre12 spec/git_strategy_spec.rb