D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
addressable-2.5.1
/
tasks
/
Filename :
rspec.rake
back
Copy
require "rspec/core/rake_task" namespace :spec do RSpec::Core::RakeTask.new(:simplecov) do |t| t.pattern = FileList['spec/**/*_spec.rb'] t.rspec_opts = ['--color', '--format', 'documentation'] end namespace :simplecov do desc "Browse the code coverage report." task :browse => "spec:simplecov" do require "launchy" Launchy.open("coverage/index.html") end end end desc "Alias to spec:simplecov" task "spec" => "spec:simplecov" task "clobber" => ["spec:clobber_simplecov"]