lib/tasks/tests.rake in newrelic_rpm-9.0.0 vs lib/tasks/tests.rake in newrelic_rpm-9.1.0
- old
+ new
@@ -11,22 +11,22 @@
end
if defined? Rake::TestTask
namespace :test do
tasks = Rake.application.top_level_tasks
- ENV["TESTOPTS"] ||= ""
- if tasks.any? { |t| t.include?("verbose") }
- ENV["TESTOPTS"] += " -v"
+ ENV['TESTOPTS'] ||= ''
+ if tasks.any? { |t| t.include?('verbose') }
+ ENV['TESTOPTS'] += ' -v'
end
if seed = look_for_seed(tasks)
- ENV["TESTOPTS"] += " --" + seed
+ ENV['TESTOPTS'] += ' --' + seed
end
agent_home = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
Rake::TestTask.new(:newrelic) do |t|
- file_pattern = ENV["file"]
- file_pattern = file_pattern.split(",").map { |f| "#{agent_home}/#{f}".gsub("//", "/") } if file_pattern
+ file_pattern = ENV['file']
+ file_pattern = file_pattern.split(',').map { |f| "#{agent_home}/#{f}".gsub('//', '/') } if file_pattern
file_pattern ||= "#{agent_home}/test/new_relic/**/*_test.rb"
t.libs << "#{agent_home}/test"
t.libs << "#{agent_home}/lib"
t.pattern = Array(file_pattern)