X Tutup
require 'rake' require 'rspec/core/rake_task' task :spec => 'test:spec' task :test => 'test:all' task :default => :spec namespace :test do RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = 'spec/*/*_spec.rb' end RSpec::Core::RakeTask.new(:exclude_slow) do |t| t.pattern = 'spec/*/*_spec.rb' t.rspec_opts = '--tag ~slow' end end
X Tutup