Minimal Rakefile for RSpec, Cucumber and Jasmine
I found I was repeatedly Googling for the Rakefile configuration to run various kinds of tests, so for my own reference, and hopefully someone else’s, here’s an example:
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
require 'guard/jasmine/task'
RSpec::Core::RakeTask.new
Cucumber::Rake::Task.new
Guard::JasmineTask.new
task :default => [:spec, :cucumber, 'guard:jasmine']
Note that you’ll need the guard-jasmine gem for the Jasmine task.