#!/usr/bin/env rake require 'bundler/gem_tasks' require 'rspec/core/rake_task' desc 'Default: run specs.' task :default => :spec desc 'Run specs' RSpec::Core::RakeTask.new do |t| t.pattern = './spec/**/*_spec.rb' end desc 'Generate code coverage' RSpec::Core::RakeTask.new(:coverage) do |t| t.rcov = true t.rcov_opts = ['--exclude', '/gems/,spec'] end