Rakefile in fluent-plugin-ec2-metadata-0.0.10 vs Rakefile in fluent-plugin-ec2-metadata-0.0.11

- old
+ new

@@ -1,10 +1,18 @@ require "bundler/gem_tasks" +require "fluent/version" +require "rake/testtask" -require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' - test.pattern = 'test/**/test_*.rb' + + test.test_files = case + when Fluent::VERSION.start_with?("0.10.") + ["test/plugin/test_out_ec2_metadata.rb"] + else + Dir['test/**/test_*.rb'] + end + test.verbose = true end task :default => :test