Rakefile in devinstall-1.2.1 vs Rakefile in devinstall-1.2.2

- old
+ new

@@ -1,15 +1,30 @@ -require "bundler/gem_tasks" +require 'bundler/gem_tasks' +require 'rspec/core/rake_task' + +desc 'Run all examples' +RSpec::Core::RakeTask.new(:spec) do |t| + t.pattern = './spec/spec_helper.rb' + t.rspec_opts = %w{--colour --format documentation} +end + +desc 'Run tests with SimpleCov' +task :coverage do + require 'simplecov' + require 'simplecov-gem-adapter' + SimpleCov.start 'gem' + Rake::Task[:spec].execute +end