Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
Index: test_spec_on_rails/tasks/specs.rake =================================================================== --- test_spec_on_rails/tasks/specs.rake (revision 0) +++ test_spec_on_rails/tasks/specs.rake (revision 0) @@ -0,0 +1,15 @@ +desc "Show specs when testing" +task :spec do + ENV['TESTOPTS'] = '--runner=s' + Rake::Task[:test].invoke +end + +%w(functionals units integration).each do |type| + namespace :spec do + desc "Show specs when testing #{type}" + task type do + ENV['TESTOPTS'] = '--runner=s' + Rake::Task["test:#{type}"].invoke + end + end +end
This paste will be private.
From the Design Piracy series on my blog: