spec/spec_helper.rb in ey-deploy-0.8.1 vs spec/spec_helper.rb in ey-deploy-0.8.2
- old
+ new
@@ -8,10 +8,28 @@
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