Skip to content
Newer
Older
100644 39 lines (30 sloc) 887 Bytes
0a6a54c @jferris Added a Gemspec and a Rake task to build the gem
jferris authored May 31, 2008
1 require 'rubygems'
5133fa9 @gabebw Use Bundler gem tasks.
gabebw authored Nov 11, 2011
2 require 'bundler'
6f663a7 @jferris Added a blank README and a simple rake file
jferris authored May 28, 2008
3 require 'rake'
6b0b3ce @jferris Use appraisal for testing across ActiveRecord versions
jferris authored Nov 11, 2010
4 require 'appraisal'
a7828ff @jferris Switch to yard
jferris authored Feb 7, 2011
5 require 'yard'
5133fa9 @gabebw Use Bundler gem tasks.
gabebw authored Nov 11, 2011
6 require 'rspec/core/rake_task'
7 require 'cucumber/rake/task'
8
9 Bundler::GemHelper.install_tasks
6f663a7 @jferris Added a blank README and a simple rake file
jferris authored May 28, 2008
10
15f36c8 Now running features with Rake
Joe Ferris authored Sep 15, 2009
11 desc 'Default: run the specs and features.'
6b0b3ce @jferris Use appraisal for testing across ActiveRecord versions
jferris authored Nov 11, 2010
12 task :default => 'spec:unit' do
5147f8b @joshuaclayton Update gem dependencies and allow for testing on 1.9.2
joshuaclayton authored Jun 27, 2011
13 system("bundle exec rake -s appraisal spec:acceptance features;")
59e66f8 @tristandunn Run tests with ActiveRecord 2.3.5 and 3.0.0.beta3! Woo!
tristandunn authored Apr 22, 2010
14 end
683aa43 @jferris Converted tests to specs
jferris authored Apr 11, 2009
15
f3366b6 @jferris Separated unit and acceptance tests to isolate Rails-related dependen…
jferris authored Jun 10, 2010
16 namespace :spec do
17 desc "Run unit specs"
3b5f90f @jferris Use rspec2
jferris authored Nov 11, 2010
18 RSpec::Core::RakeTask.new('unit') do |t|
c59981d @jferris Split factories/sequences into separate registries most of the time;
jferris authored May 19, 2011
19 t.pattern = 'spec/{*_spec.rb,factory_girl/**/*_spec.rb}'
f3366b6 @jferris Separated unit and acceptance tests to isolate Rails-related dependen…
jferris authored Jun 10, 2010
20 end
21
22 desc "Run acceptance specs"
3b5f90f @jferris Use rspec2
jferris authored Nov 11, 2010
23 RSpec::Core::RakeTask.new('acceptance') do |t|
24 t.pattern = 'spec/acceptance/**/*_spec.rb'
f3366b6 @jferris Separated unit and acceptance tests to isolate Rails-related dependen…
jferris authored Jun 10, 2010
25 end
6f663a7 @jferris Added a blank README and a simple rake file
jferris authored May 28, 2008
26 end
27
f3366b6 @jferris Separated unit and acceptance tests to isolate Rails-related dependen…
jferris authored Jun 10, 2010
28 desc "Run the unit and acceptance specs"
29 task :spec => ['spec:unit', 'spec:acceptance']
30
15f36c8 Now running features with Rake
Joe Ferris authored Sep 15, 2009
31 Cucumber::Rake::Task.new(:features) do |t|
32 t.fork = true
33 t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
34 end
4802311 @jferris Restored the rake gem package tasks
jferris authored Jun 23, 2010
35
a7828ff @jferris Switch to yard
jferris authored Feb 7, 2011
36 YARD::Rake::YardocTask.new do |t|
37 end
38
Something went wrong with that request. Please try again.