require 'bundler/gem_tasks' require 'rspec/core/rake_task' task :spec => ['spec:unit', 'spec:integration'] namespace :spec do RSpec::Core::RakeTask.new(:unit) do |t| t.pattern = 'spec/unit/**/*_spec.rb' end RSpec::Core::RakeTask.new(:integration) do |t| t.pattern = 'spec/integration/**/*_spec.rb' end end task :default => :spec