Rakefile in seymour-0.0.3 vs Rakefile in seymour-0.0.4

- old
+ new

@@ -23,5 +23,22 @@ APP_RAKEFILE = File.expand_path(".././spec/dummy/Rakefile", __FILE__) load 'rails/tasks/engine.rake' Bundler::GemHelper.install_tasks +require 'rspec/core/rake_task' + +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 + +desc "Run the specs" +task :default => ["spec"]