1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 16:53:23 -05:00
BikeShed-1/Rakefile

32 lines
766 B
Ruby
Raw Permalink Normal View History

2012-12-04 00:46:15 -05:00
#!/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.
Rake::TaskManager.class_eval do
def remove_task(task_name)
@tasks.delete(task_name.to_s)
end
end
require File.expand_path('../config/application', __FILE__)
Velocipede::Application.load_tasks
2013-06-02 21:50:22 -04:00
unless Rails.env.production?
namespace :spec do
desc 'Run all acceptance specs'
RSpec::Core::RakeTask.new(:acceptance => 'db:test:prepare') do |t|
t.pattern = '**/*.feature'
end
2012-12-04 00:46:15 -05:00
end
2013-06-02 21:50:22 -04:00
Rake.application.remove_task 'spec'
desc 'Run all specs'
RSpec::Core::RakeTask.new(:spec => 'db:test:prepare') do |t|
t.pattern = '**/*{_spec.rb,.feature}'
end
2012-12-04 00:46:15 -05:00
end