Skip to content

Instantly share code, notes, and snippets.

@jellybob
Created November 5, 2011 14:05
Show Gist options
  • Save jellybob/1341539 to your computer and use it in GitHub Desktop.
Save jellybob/1341539 to your computer and use it in GitHub Desktop.
Include fast specs in your code stats.
task :stats => :statsetup
task :statsetup do
fast_spec_dir = "fast_spec" # Change this if you keep them elsewhere.
require 'rails/code_statistics'
::STATS_DIRECTORIES << %W(Fast\ specs #{fast_spec_dir}) if File.exist?(fast_spec_dir)
::CodeStatistics::TEST_TYPES << "Fast specs" if File.exist?(fast_spec_dir)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment