forked from yammer/sched.do
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
30 lines (24 loc) · 761 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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.
require File.expand_path('../config/application', __FILE__)
SchedDo::Application.load_tasks
begin
require 'guard/jasmine/task'
Guard::JasmineTask.new(:jasmine)
rescue LoadError
end
if defined?(RSpec)
desc 'Run factory specs'
RSpec::Core::RakeTask.new(:factory_specs) do |t|
t.pattern = './spec/models/factories_spec.rb'
end
desc 'Run acceptance specs'
RSpec::Core::RakeTask.new(:acceptance) do |t|
t.pattern = 'spec/acceptance/**/*.feature'
end
end
task spec: :factory_specs
task(:default).clear
task :default => [:spec, :acceptance, 'guard:jasmine']