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

Version Path
engineyard-serverside-1.6.0.pre5 spec/git_strategy_spec.rb
engineyard-serverside-1.6.0.pre4 spec/git_strategy_spec.rb
engineyard-serverside-1.6.0.pre3 spec/git_strategy_spec.rb
engineyard-serverside-1.6.0.pre2 spec/git_strategy_spec.rb
engineyard-serverside-1.6.0.pre spec/git_strategy_spec.rb
engineyard-serverside-1.5.29.pre.timestamps2 spec/git_strategy_spec.rb
engineyard-serverside-1.5.29.pre.timestamps spec/git_strategy_spec.rb
engineyard-serverside-1.5.28.pre.timestamps4 spec/git_strategy_spec.rb
engineyard-serverside-1.5.28.pre.timestamps3 spec/git_strategy_spec.rb
engineyard-serverside-1.5.28.pre.timestamps2 spec/git_strategy_spec.rb
engineyard-serverside-1.5.28.pre.timestamps spec/git_strategy_spec.rb