-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
40 lines (31 loc) · 1.29 KB
/
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
31
32
33
34
35
36
37
38
39
40
require "bundler/gem_tasks"
task :default do ;; end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:active_record_spec) do |t|
t.rspec_opts = ['--options', "\"./.rspec\""]
t.pattern = "spec/activerecord/*_spec.rb"
end
RSpec::Core::RakeTask.new(:active_record_delayed_job_spec) do |t|
t.rspec_opts = ['--options', "\"./.rspec\""]
t.pattern = "spec/activerecord/delayed_job/*_spec.rb"
end
RSpec::Core::RakeTask.new(:active_record_resque_spec) do |t|
t.rspec_opts = ['--options', "\"./.rspec\""]
t.pattern = "spec/activerecord/resque/*_spec.rb"
end
RSpec::Core::RakeTask.new(:active_record_sidekiq_spec) do |t|
t.rspec_opts = ['--options', "\"./.rspec\""]
t.pattern = "spec/activerecord/sidekiq/*_spec.rb"
end
RSpec::Core::RakeTask.new(:data_mapper_spec) do |t|
t.rspec_opts = ['--options', "\"./.rspec\""]
t.pattern = "spec/datamapper/*_spec.rb"
end
task :spec do |t|
Rake::Task["active_record_spec"].invoke rescue (failed = true)
Rake::Task["active_record_delayed_job_spec"].invoke rescue (failed = true)
Rake::Task["active_record_resque_spec"].invoke rescue (failed = true)
Rake::Task["active_record_sidekiq_spec"].invoke rescue (failed = true) unless RUBY_VERSION == "1.8.7"
Rake::Task["data_mapper_spec"].invoke rescue (failed = true)
raise "failed" if failed
end