Skip to content

Instantly share code, notes, and snippets.

@jhirn
Created April 11, 2013 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jhirn/5366218 to your computer and use it in GitHub Desktop.
Save jhirn/5366218 to your computer and use it in GitHub Desktop.
#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
if Rails.env.development? || Rails.env.test?
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
namespace :spec do
desc "runs integration tests only"
RSpec::Core::RakeTask.new(:integration) do |t|
t.pattern = "spec/features/**/*_spec.rb"
t.spec_opts = "--tag js"
end
desc "Run both test suites"
task :all do
Rake::Task['spec'].invoke
Rake::Task['spec:integration'].invoke
end
end
end
Icurio::Application.load_tasks
task :default => :spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment