Rakefile in uploadcare-rails-1.0.1 vs Rakefile in uploadcare-rails-1.0.2

- old
+ new

@@ -1,32 +1,19 @@ +#!/usr/bin/env rake begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end -require 'rdoc/task' - -RDoc::Task.new(:rdoc) do |rdoc| - rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'UploadcareRails' - rdoc.options << '--line-numbers' - rdoc.rdoc_files.include('README.rdoc') - rdoc.rdoc_files.include('lib/**/*.rb') -end - - - - Bundler::GemHelper.install_tasks -require 'rake/testtask' +APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) +load 'rails/tasks/engine.rake' +require "rspec/core/rake_task" -Rake::TestTask.new(:test) do |t| - t.libs << 'lib' - t.libs << 'test' - t.pattern = 'test/**/*_test.rb' - t.verbose = false -end +task :default => :spec - -task default: :test +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = 'spec/**/*_spec.rb' + # spec.rspec_opts = ['-cfs --backtrace'] +end \ No newline at end of file