Rakefile in foreman_ansible-1.0 vs Rakefile in foreman_ansible-1.1

- old
+ new

@@ -2,39 +2,18 @@ begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end -begin - require 'rdoc/task' -rescue LoadError - require 'rdoc/rdoc' - require 'rake/rdoctask' - RDoc::Task = Rake::RDocTask -end -RDoc::Task.new(:rdoc) do |rdoc| - rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'ForemanAnsible' - rdoc.options << '--line-numbers' - rdoc.rdoc_files.include('README.rdoc') - rdoc.rdoc_files.include('lib/**/*.rb') -end - -APP_RAKEFILE = File.expand_path('../test/dummy/Rakefile', __FILE__) - -Bundler::GemHelper.install_tasks - require 'rake/testtask' - -Rake::TestTask.new(:test) do |t| - t.libs << 'lib' - t.libs << 'test' - t.pattern = 'test/**/*_test.rb' - t.verbose = false +Rake::TestTask.new("test:core") do |test| + test_dir = File.join(File.dirname(__FILE__), 'test/lib') + test.pattern = "#{test_dir}/**/*_test.rb" + test.libs << test_dir + test.verbose = false + test.warning = false end - -task :default => :test begin require 'rubocop/rake_task' RuboCop::RakeTask.new rescue => _