Permalink
Browse files

Changed junit_dir option name to ci_reports. Changed CI_Runner to CIR…

…unner.
  • Loading branch information...
1 parent e946385 commit 34848462f0ee421ec4732257a97b6ee4ee5bfd09 @leftathome committed Jul 11, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 lib/minitest-chef-handler.rb
View
9 lib/minitest-chef-handler.rb
@@ -7,7 +7,6 @@
require 'minitest-chef-handler/assertions'
require 'minitest-chef-handler/infections'
-require 'ci/reporter/minitest'
require 'minitest-chef-handler/lookup'
@@ -23,12 +22,12 @@ def initialize(options = {})
def report
# do not run tests if chef failed
return if failed?
- ENV['CI_REPORTS'] = @options[:junit_dir] if @options[:junit_dir]
- require 'ci/reporter/minitest' if @options[:junit_dir]
+ ENV['CI_REPORTS'] = @options[:ci_reports] if @options[:ci_reports]
+ require 'ci/reporter/minitest' if @options[:ci_reports]
require_test_suites(@options.delete(:path))
- if @options[:junit_dir]
- runner = CI_Runner.new(run_status)
+ if @options[:ci_reports]
+ runner = CIRunner.new(run_status)
else
runner = Runner.new(run_status)
end

0 comments on commit 3484846

Please sign in to comment.