Rakefile in active_fedora-noid-2.0.0.beta5 vs Rakefile in active_fedora-noid-2.0.0.beta6

- old
+ new

@@ -1,12 +1,22 @@ -require "bundler/gem_tasks" +# frozen_string_literal: true +require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'engine_cart/rake_task' +require 'rubocop/rake_task' -task default: :ci -RSpec::Core::RakeTask.new - Dir.glob('lib/tasks/*.rake').each { |r| import r } -desc 'Continuous Integration (generate test app and run tests)' -task ci: ['engine_cart:generate', 'spec'] do +desc 'Run test suite' +task :spec do + RSpec::Core::RakeTask.new end + +desc 'Run style checker' +RuboCop::RakeTask.new(:rubocop) do |task| + task.fail_on_error = true +end + +desc 'Continuous Integration (generate test app and run tests)' +task ci: ['rubocop', 'engine_cart:generate', 'spec'] + +task default: :ci