Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (20 sloc) 0.631 kb
9d79124 @gabebw bundler/setup is important.
gabebw authored
1 require 'bundler/setup'
ad570cc @gabebw bundler/gem_tasks is easier.
gabebw authored
2 require 'bundler/gem_tasks'
6aca717 @jferris Extracted the context framework, switched to rspec
jferris authored
3 require 'rspec/core/rake_task'
4 require 'cucumber/rake/task'
44847c6 @sikachu Add Appraisals to the project to handle testing against multiple Rails v...
sikachu authored
5 require 'appraisal'
18229ed @rmm5t Moved VERSION constant into a more discoverable file
rmm5t authored
6
6aca717 @jferris Extracted the context framework, switched to rspec
jferris authored
7 RSpec::Core::RakeTask.new do |t|
8 t.pattern = "spec/**/*_spec.rb"
4ee78bf @jferris Fixes for Rails 3.0.3 and RSpec 2.3
jferris authored
9 t.rspec_opts = '--color --format progress'
10 t.verbose = false
6aca717 @jferris Extracted the context framework, switched to rspec
jferris authored
11 end
12
2320a8c @jferris Don't test Rails 2
jferris authored
13 Cucumber::Rake::Task.new do |t|
44847c6 @sikachu Add Appraisals to the project to handle testing against multiple Rails v...
sikachu authored
14 t.fork = false
2320a8c @jferris Don't test Rails 2
jferris authored
15 t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
cb7eae1 @jferris Fixed rspec2/rails3 integration; added integration tests for macros/matc...
jferris authored
16 end
17
44847c6 @sikachu Add Appraisals to the project to handle testing against multiple Rails v...
sikachu authored
18 desc 'Test the plugin under all supported Rails versions.'
41088bc @gabebw Clean up Rakefile.
gabebw authored
19 task :all => ["appraisal:cleanup", "appraisal:install"] do
44847c6 @sikachu Add Appraisals to the project to handle testing against multiple Rails v...
sikachu authored
20 exec('rake appraisal spec cucumber')
21 end
41088bc @gabebw Clean up Rakefile.
gabebw authored
22
23 desc 'Default: run specs and cucumber features'
24 task :default => [:all]
Something went wrong with that request. Please try again.