require "bundler/gem_tasks" require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec).tap do |task| task.rspec_opts = "--order rand" end task :isolated_specs do Dir["spec/isolated/*"].each do |file| sh "bundle exec ruby #{file}" end end task :default => [:spec, :isolated_specs]