Created
April 11, 2013 19:00
-
-
Save jhirn/5366218 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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