Skip to content

Instantly share code, notes, and snippets.

@jmgarnier
Created September 4, 2012 08:42
Show Gist options
  • Save jmgarnier/3618631 to your computer and use it in GitHub Desktop.
Save jmgarnier/3618631 to your computer and use it in GitHub Desktop.
spec.rake
if defined? RSpec
task(:spec).clear
desc "Run all specs in spec directory starting with js specs"
RSpec::Core::RakeTask.new(:spec => ['konacha:run', 'db:test:prepare']) do |t|
t.pattern = './spec/**/*{_spec.rb,.feature}'
end
namespace :spec do
desc "Run the code examples in spec/acceptance"
RSpec::Core::RakeTask.new(:acceptance => 'db:test:prepare') do |t|
t.pattern = './spec/acceptance/**/*.feature'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment