```ruby
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new('spec')
```

Add a task to open the coverage report
user
```ruby
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

namespace :spec do
  desc "Open coverage report in browser"
  task :open_coverage => :browser do
    sh "#{ENV["DEVELOPMENT_WEBBROWSER"]} coverage/index.html"
  end
end
```
assistant