Skip to content
This repository
Newer
Older
100644 61 lines (48 sloc) 1.529 kb
6b447869 »
2012-03-31 Create rakefile with default test task
1 # encoding: utf-8
2
3 require 'rubygems'
4 require 'bundler'
5
6 begin
7 Bundler.setup(:default, :development)
8 rescue Bundler::BundlerError => e
9 $stderr.puts e.message
10 $stderr.puts "Run `bundle install` to install missing gems"
11 exit e.status_code
12 end
13
14 require 'rake'
15 require 'rspec/core/rake_task'
16
17 RSpec::Core::RakeTask.new
18
98679dcc »
2012-06-28 Big refactoring to enable testing of Mongoid
19 task :default => "spec:all"
6b447869 »
2012-03-31 Create rakefile with default test task
20 task :test => :spec
f8b4044a »
2012-06-17 Provide rake task to update authors file
21
98679dcc »
2012-06-28 Big refactoring to enable testing of Mongoid
22 namespace :spec do
bf86d911 »
2012-08-23 Add specs for Mongoid 3
23 desc "Run Tests against mongoid (version 3)"
24 task :mongoid3 do
25 sh "BUNDLE_GEMFILE='gemfiles/mongoid3.gemfile' bundle --quiet"
26 sh "BUNDLE_GEMFILE='gemfiles/mongoid3.gemfile' bundle exec rake -t spec"
27 end
28
29 desc "Run Tests against mongoid (version 2)"
98679dcc »
2012-06-28 Big refactoring to enable testing of Mongoid
30 task :mongoid2 do
31 sh "BUNDLE_GEMFILE='gemfiles/mongoid2.gemfile' bundle --quiet"
32 sh "BUNDLE_GEMFILE='gemfiles/mongoid2.gemfile' bundle exec rake -t spec"
33 end
34
35 desc "Run Tests against activerecord"
36 task :activerecord do
37 sh "bundle --quiet"
38 sh "bundle exec rake -t spec"
39 end
40
41 desc "Run Tests against all ORMs"
42 task :all do
bf86d911 »
2012-08-23 Add specs for Mongoid 3
43 # Mongoid 3
44 sh "BUNDLE_GEMFILE='gemfiles/mongoid3.gemfile' bundle --quiet"
45 sh "BUNDLE_GEMFILE='gemfiles/mongoid3.gemfile' bundle exec rake -t spec"
46
98679dcc »
2012-06-28 Big refactoring to enable testing of Mongoid
47 # Mongoid 2
48 sh "BUNDLE_GEMFILE='gemfiles/mongoid2.gemfile' bundle --quiet"
49 sh "BUNDLE_GEMFILE='gemfiles/mongoid2.gemfile' bundle exec rake -t spec"
50
51 # ActiveRecord
52 sh "bundle --quiet"
53 sh "bundle exec rake -t spec"
54 end
55 end
56
f8b4044a »
2012-06-17 Provide rake task to update authors file
57 desc "Update AUTHORS file"
58 task :authors do
59 sh "git shortlog -s | awk '{ print $2 \" \" $3 }' > AUTHORS"
60 end
Something went wrong with that request. Please try again.