Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 19 lines (15 sloc) 0.349 kb
ec656e1 Gabe Berke-Williams bundler/setup is important.
gabebw authored
1 require 'bundler/setup'
35cfdde Gabe Berke-Williams bundler/gem_tasks is easier.
gabebw authored
2 require 'bundler/gem_tasks'
4dd575d Matt Jankowski use appraisal to test against both rails 3.1.0 and 3.0.10
mjankowski authored
3 require 'appraisal'
63187dd Gabe Berke-Williams Use Bundler gem conventions.
gabebw authored
4
14dfd9e Matt Jankowski run tests without Appraisal when BUNDLE_GEMFILE is set
mjankowski authored
5 require 'rspec/core/rake_task'
4925fd5 Matt Jankowski switch to use rspec for tests
mjankowski authored
6 RSpec::Core::RakeTask.new(:spec)
1650fc5 first commit
Tammer Saleh authored
7
14dfd9e Matt Jankowski run tests without Appraisal when BUNDLE_GEMFILE is set
mjankowski authored
8 task :default do |t|
9 if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
10 exec 'rake spec'
11 else
12 Rake::Task['appraise'].execute
13 end
14 end
4dd575d Matt Jankowski use appraisal to test against both rails 3.1.0 and 3.0.10
mjankowski authored
15
14dfd9e Matt Jankowski run tests without Appraisal when BUNDLE_GEMFILE is set
mjankowski authored
16 task :appraise => ['appraisal:install'] do |t|
17 exec 'rake appraisal'
4dd575d Matt Jankowski use appraisal to test against both rails 3.1.0 and 3.0.10
mjankowski authored
18 end
Something went wrong with that request. Please try again.