Sha256: 7e4df03549c65ed9d69c62b1c5be9fc7491f1a25be3d8a6efe4d1e9673691a10

Contents?: true

Size: 726 Bytes

Versions: 9

Compression:

Stored size: 726 Bytes

Contents

$LOAD_PATH.push File.expand_path("../lib", File.dirname(__FILE__))

Bundler.require :default, :test
require 'pp'
require 'ey-deploy'

module EY
  def self.dna_json=(j)
    @dna_json = j;
    @node = nil
    j
  end

  module LoggedOutput
    def info(_) end

    def logged_system(cmd)
      system("#{cmd} 2>/dev/null")
    end
  end

  class Strategies::Git
    def short_log_message(_) "" end
  end
end

FIXTURES_DIR = File.expand_path("../fixtures", __FILE__)
GITREPO_DIR = "#{FIXTURES_DIR}/gitrepo"

FileUtils.rm_rf GITREPO_DIR if File.exists? GITREPO_DIR
Kernel.system "tar xzf #{GITREPO_DIR}.tar.gz -C #{FIXTURES_DIR}"

Spec::Runner.configure do |config|
  config.before(:all) do
    EY.dna_json = {}.to_json
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ey-deploy-1.1.3 spec/spec_helper.rb
ey-deploy-1.1.2 spec/spec_helper.rb
ey-deploy-1.1.1 spec/spec_helper.rb
ey-deploy-1.1.0 spec/spec_helper.rb
ey-deploy-1.0.2 spec/spec_helper.rb
ey-deploy-1.0.1 spec/spec_helper.rb
ey-deploy-1.0.0 spec/spec_helper.rb
ey-deploy-0.9.1 spec/spec_helper.rb
ey-deploy-0.8.2 spec/spec_helper.rb