[DRE-commits] [ruby-foreman] 03/04: spec_helper: misc changes to run against Debian packages
Antonio Terceiro
terceiro at moszumanska.debian.org
Wed Feb 4 17:29:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch patch-queue/master
in repository ruby-foreman.
commit 947c26a09b8a22c3207f6e13bc24456cf7ff1c2c
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Wed Feb 4 11:31:10 2015 -0200
spec_helper: misc changes to run against Debian packages
---
spec/spec_helper.rb | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 2eaca35..824ac9c 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,17 +1,12 @@
-require "codeclimate-test-reporter"
-CodeClimate::TestReporter.start
-
-require "simplecov"
-SimpleCov.start do
- add_filter "/spec/"
-end
-
require "rspec"
require "timecop"
require "fakefs/safe"
require "fakefs/spec_helpers"
$:.unshift File.expand_path("../../lib", __FILE__)
+unless ENV['ADTTMP']
+ ENV['PATH'] = 'bin:' + ENV['PATH']
+end
def mock_export_error(message)
expect { yield }.to raise_error(Foreman::Export::Exception, message)
@@ -39,7 +34,7 @@ end
def forked_foreman(args)
rd, wr = make_pipe
- Process.spawn("bundle exec bin/foreman #{args}", :out => wr, :err => wr)
+ Process.spawn("foreman #{args}", :out => wr, :err => wr)
wr.close
rd.read
end
@@ -64,7 +59,7 @@ def fork_and_capture(&blk)
end
def fork_and_get_exitstatus(args)
- pid = Process.spawn("bundle exec bin/foreman #{args}", :out => "/dev/null", :err => "/dev/null")
+ pid = Process.spawn("foreman #{args}", :out => "/dev/null", :err => "/dev/null")
Process.wait(pid)
$?.exitstatus
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-foreman.git
More information about the Pkg-ruby-extras-commits
mailing list