Browse files

added Rakefile to make TravisCI happy

  • Loading branch information...
1 parent 2223ce9 commit 732700a849ef79aee513e9cf5fa07b894cb9a4b6 @sethvargo committed Mar 4, 2012
Showing with 18 additions and 1 deletion.
  1. +18 −1 Rakefile
View
19 Rakefile
@@ -1 +1,18 @@
-require 'bundler/gem_tasks'
+require 'bundler/gem_tasks'
+require 'rspec/core/rake_task'
+
+desc 'Default: run specs.'
+task :default => :spec
+
+desc "Run specs"
+RSpec::Core::RakeTask.new do |t|
+ t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
+ # Put spec opts in a file named .rspec in root
+end
+
+desc "Generate code coverage"
+RSpec::Core::RakeTask.new(:coverage) do |t|
+ t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
+ t.rcov = true
+ t.rcov_opts = ['--exclude', 'spec']
+end

0 comments on commit 732700a

Please sign in to comment.