Rakefile in activefedora-aggregation-0.8.1 vs Rakefile in activefedora-aggregation-0.9.0

- old
+ new

@@ -1,23 +1,20 @@ require "bundler/gem_tasks" require 'rspec/core' require 'rspec/core/rake_task' -RSpec::Core::RakeTask.new(:spec) +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.rspec_opts = '--backtrace' +end -require 'jettywrapper' -Jettywrapper.hydra_jetty_version = "v8.3.1" +require 'solr_wrapper/rake_task' +require 'fcrepo_wrapper' +require 'active_fedora/rake_support' -desc 'Spin up hydra-jetty and run specs' -task ci: ['jetty:clean'] do - puts 'running continuous integration' - jetty_params = Jettywrapper.load_config - jetty_params[:startup_wait]= 90 - error = Jettywrapper.wrap(jetty_params) do +desc 'Start Fedora and Solr and run specs' +task :ci do + with_test_server do Rake::Task['spec'].invoke end - raise "test failures: #{error}" if error end - - task default: :ci