diff options
author | francis <francis> | 2007-10-31 19:48:26 +0000 |
---|---|---|
committer | francis <francis> | 2007-10-31 19:48:26 +0000 |
commit | 28fb182fa965467b73ad0b9bea506de8050305d3 (patch) | |
tree | ada24e870bcbca97addfdd6a065c49a44c091e90 /vendor/plugins/rake_tasks/tasks/environment.rake | |
parent | fd677a19af54b1b10aa21c9cdb908ea9a5a40341 (diff) |
Add spec:check as a rake task to show what classes we don't have test for at all. Annoying really that rspec rcov doesn't show this in its report.
Diffstat (limited to 'vendor/plugins/rake_tasks/tasks/environment.rake')
-rw-r--r-- | vendor/plugins/rake_tasks/tasks/environment.rake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/plugins/rake_tasks/tasks/environment.rake b/vendor/plugins/rake_tasks/tasks/environment.rake new file mode 100644 index 000000000..223bba3e5 --- /dev/null +++ b/vendor/plugins/rake_tasks/tasks/environment.rake @@ -0,0 +1,9 @@ +# +# Thanks to Chris for this handy task (http://errtheblog.com/post/33) +# +%w[development test production].each do |env| + desc "Runs the following task in the #{env} environment" + task env do + RAILS_ENV = ENV['RAILS_ENV'] = env + end +end
\ No newline at end of file |