lib/tasks/tests.rake in newrelic_rpm-3.5.2.17 vs lib/tasks/tests.rake in newrelic_rpm-3.5.3.24

- old
+ new

@@ -5,21 +5,15 @@ if defined? Rake::TestTask task :test => 'test:newrelic' task :default => :test namespace :test do - AGENT_HOME = File.expand_path(File.join(File.dirname(__FILE__),'..','..')) - Rake::TestTask.new(:newrelic) do |t| - t.libs << "#{AGENT_HOME}/test" - t.libs << "#{AGENT_HOME}/lib" - t.pattern = "#{AGENT_HOME}/test/**/*_test.rb" - t.verbose = true - end + agent_home = File.expand_path(File.join(File.dirname(__FILE__),'..','..')) - Rake::TestTask.new(:intentional_fail) do |t| - t.libs << "#{AGENT_HOME}/test" - t.libs << "#{AGENT_HOME}/lib" - t.pattern = "#{AGENT_HOME}/test/intentional_fail.rb" + Rake::TestTask.new(:newrelic) do |t| + t.libs << "#{agent_home}/test" + t.libs << "#{agent_home}/lib" + t.pattern = "#{agent_home}/test/new_relic/**/*_test.rb" t.verbose = true end end end