Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change the way we add to the environment variables

(courtesy Adam Anderson)


git-svn-id: http://svn.caldersphere.net/svn/main/rubyforge/ci_reporter/trunk@157 b03c2d0b-2f10-0410-a2f9-fc8001506dfa
  • Loading branch information...
commit 13038dac5e1a0caf857310459836a5fed3959a39 1 parent 0f8916c
@nicksieger nicksieger authored
View
7 lib/ci/reporter/rake/rspec.rb
@@ -6,14 +6,11 @@
namespace :setup do
task :rspec do
rm_rf ENV["CI_REPORTS"] || "spec/reports"
-
spec_opts = ["--require", "#{File.dirname(__FILE__)}/rspec_loader.rb",
"--format", "CI::Reporter::RSpec"].join(" ")
- ENV["SPEC_OPTS"] ||= ""
- ENV["SPEC_OPTS"] += spec_opts
+ ENV["SPEC_OPTS"] = "#{ENV['SPEC_OPTS']} #{spec_opts}"
# Pre RSpec 1.0.6
- ENV["RSPECOPTS"] ||= ""
- ENV["RSPECOPTS"] += spec_opts
+ ENV["RSPECOPTS"] = "#{ENV['RSPECOPTS']} #{spec_opts}"
end
end
end
View
3  lib/ci/reporter/rake/test_unit.rb
@@ -6,8 +6,7 @@
namespace :setup do
task :testunit do
rm_rf ENV["CI_REPORTS"] || "test/reports"
- ENV["TESTOPTS"] ||= ""
- ENV["TESTOPTS"] += " #{File.dirname(__FILE__)}/test_unit_loader.rb"
+ ENV["TESTOPTS"] = "#{ENV["TESTOPTS"]} #{File.dirname(__FILE__)}/test_unit_loader.rb"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.