Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (26 sloc) 0.911 kb
d4e99fe Add misc. route changes and add specs for the recognition process
Darcy Laycock authored
1 require 'rubygems'
2 require 'rake'
3 require 'rspec/core'
4 require 'rspec/core/rake_task'
446e128 @Sutto Bump version, bundler tasks.
authored
5 require 'bundler/gem_tasks'
d4e99fe Add misc. route changes and add specs for the recognition process
Darcy Laycock authored
6
7 desc "Run all specs in spec directory (excluding plugin specs)"
8 RSpec::Core::RakeTask.new(:spec)
9
a270612 @Sutto Add ActiveRecord integration and specs, docs!
authored
10 INTEGRATION_LIBS = %w(will_paginate kaminari active_record)
11
d4e99fe Add misc. route changes and add specs for the recognition process
Darcy Laycock authored
12 namespace :spec do
3ec4970 @Sutto Add will_paginate fixes and and refactored integration specs
authored
13
14 namespace :integration do
15
a270612 @Sutto Add ActiveRecord integration and specs, docs!
authored
16 INTEGRATION_LIBS.each do |lib|
17
18 desc "Run the #{lib} integrate specs"
19 RSpec::Core::RakeTask.new(lib.to_sym) do |t|
20 t.rspec_opts = "--tag integration"
21 t.pattern = "./spec/integration/#{lib}_spec.rb"
22 end
3ec4970 @Sutto Add will_paginate fixes and and refactored integration specs
authored
23
24 end
25
26 end
27
d4e99fe Add misc. route changes and add specs for the recognition process
Darcy Laycock authored
28 desc "Run all specs with rcov"
29 RSpec::Core::RakeTask.new(:rcov) do |t|
30 t.rcov = true
31 t.pattern = "./spec/**/*_spec.rb"
32 t.rcov_opts = '--exclude spec/,/gems/,/Library/,/usr/,lib/tasks,.bundle,config,/lib/rspec/,/lib/rspec-'
33 end
3ec4970 @Sutto Add will_paginate fixes and and refactored integration specs
authored
34 end
35
a270612 @Sutto Add ActiveRecord integration and specs, docs!
authored
36 task :default => ([:spec] + INTEGRATION_LIBS.map { |l| "spec:integration:#{l}" })
Something went wrong with that request. Please try again.