This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if defined?(RSpec) | |
namespace :rcov do | |
RSpec::Core::RakeTask.new(:rspec_aggregate) do |task| | |
task.pattern = 'spec/**/*_spec.rb' | |
task.rspec_opts = "--format progress" | |
task.rcov = true | |
task.rcov_opts = "--rails --exclude osx\/objc,spec,gems\/ " + | |
"--aggregate tmp/coverage.data" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to render rails 3.0 views within rake tasks. | |
# | |
# Description: An example of how to render a view within a rake task, | |
# complete with instance variables, application & url helpers and I18n. | |
# | |
# License: X11 license | |
# | |
# Copyright (c) 2010 Kim Burgestrand <http://burgestrand.se/> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy |
NewerOlder