Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 38 lines (31 sloc) 0.92 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'
44847c6 @sikachu Add Appraisals to the project to handle testing against multiple Rail…
sikachu authored
4 require 'appraisal'
6925773 @mcmire Extract documentation tasks to a separate file
mcmire authored
5 require_relative 'tasks/documentation'
72f60fa @mcmire Add support for Postgres
mcmire authored
6 require_relative 'spec/support/tests/database'
9b5fe69 @mcmire Publish new docs when releasing a new version
mcmire authored
7
f922613 @mcmire Reorganize unit tests, part II
mcmire authored
8 RSpec::Core::RakeTask.new('spec:unit') do |t|
12cc7aa @mcmire Remove all Ruby-emitted warnings
mcmire authored
9 t.ruby_opts = '-w -r ./spec/report_warnings'
f922613 @mcmire Reorganize unit tests, part II
mcmire authored
10 t.pattern = "spec/unit/**/*_spec.rb"
4ee78bf @jferris Fixes for Rails 3.0.3 and RSpec 2.3
jferris authored
11 t.rspec_opts = '--color --format progress'
12 t.verbose = false
6aca717 @jferris Extracted the context framework, switched to rspec
jferris authored
13 end
14
3fb4cdb @mcmire Add new RSpec acceptance tests to replace Cucumber
mcmire authored
15 RSpec::Core::RakeTask.new('spec:acceptance') do |t|
16 t.ruby_opts = '-w -r ./spec/report_warnings'
17 t.pattern = "spec/acceptance/**/*_spec.rb"
18 t.rspec_opts = '--color --format progress'
19 t.verbose = false
20 end
21
5c3fb37 @mcmire Install appraisals before running the test suite
mcmire authored
22 task :default do
3d33dfc @mjankowski Allow the suite to run sequentially via Appraisal, or one at a time w…
mjankowski authored
23 if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
f922613 @mcmire Reorganize unit tests, part II
mcmire authored
24 sh 'rake spec:unit'
c432a8c @mcmire Remove Cucumber tests
mcmire authored
25 sh 'rake spec:acceptance'
3d33dfc @mjankowski Allow the suite to run sequentially via Appraisal, or one at a time w…
mjankowski authored
26 else
5c3fb37 @mcmire Install appraisals before running the test suite
mcmire authored
27 Rake::Task['appraise'].invoke
3d33dfc @mjankowski Allow the suite to run sequentially via Appraisal, or one at a time w…
mjankowski authored
28 end
44847c6 @sikachu Add Appraisals to the project to handle testing against multiple Rail…
sikachu authored
29 end
41088bc @gabebw Clean up Rakefile.
gabebw authored
30
602be16 @mcmire Use the new appraisal executable in 1.0.0.beta1
mcmire authored
31 task :appraise do
32 exec 'appraisal install && appraisal rake'
3d33dfc @mjankowski Allow the suite to run sequentially via Appraisal, or one at a time w…
mjankowski authored
33 end
9b5fe69 @mcmire Publish new docs when releasing a new version
mcmire authored
34
6925773 @mcmire Extract documentation tasks to a separate file
mcmire authored
35 Shoulda::Matchers::DocumentationTasks.create
9b5fe69 @mcmire Publish new docs when releasing a new version
mcmire authored
36
37 task release: 'docs:publish_latest'
Something went wrong with that request. Please try again.