require "bundler/gem_tasks" require "rspec/core/rake_task" namespace :spec do desc "Run Unit Tests" RSpec::Core::RakeTask.new(:unit) do |t| t.pattern = 'spec/lib/**/*_spec.rb' end desc "Run Feature/Integration Tests" RSpec::Core::RakeTask.new(:features) do |t| t.pattern = 'spec/features/**/*.rb' end desc "Run All Tests" RSpec::Core::RakeTask.new(:all) do |t| t.pattern = 'spec/lib/**/*_spec.rb, spec/features/**/*.rb' end end task :default => "spec:all"