Sha256: 5f710bf880ad57f2c8362506d25a99ec97515e3d3673652d40adbca26236b187
Contents?: true
Size: 721 Bytes
Versions: 5
Compression:
Stored size: 721 Bytes
Contents
# encoding: utf-8 require 'bundler' require 'bundler/gem_tasks' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts 'Run `bundle install` to install missing gems' exit e.status_code end require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = FileList['spec/**/*_spec.rb'] end desc 'Run RSpec with code coverage' task :coverage do ENV['COVERAGE'] = 'true' Rake::Task['spec'].execute end desc 'Run RuboCop over this gem' task :internal_investigation do require 'rubocop-rspec' result = Rubocop::CLI.new.run abort('RuboCop failed!') unless result == 0 end task default: [:spec, :internal_investigation]
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rubocop-rspec-1.0.rc2 | Rakefile |
rubocop-rspec-1.0.rc1 | Rakefile |
rubocop-rspec-0.18.1 | Rakefile |
rubocop-rspec-0.18.0 | Rakefile |
rubocop-rspec-0.17.0 | Rakefile |