Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 39 lines (30 sloc) 0.887 kB
0a6a54c @jferris Added a Gemspec and a Rake task to build the gem
jferris authored
1 require 'rubygems'
5133fa9 @gabebw Use Bundler gem tasks.
gabebw authored
2 require 'bundler'
6f663a7 @jferris Added a blank README and a simple rake file
jferris authored
3 require 'rake'
6b0b3ce @jferris Use appraisal for testing across ActiveRecord versions
jferris authored
4 require 'appraisal'
a7828ff @jferris Switch to yard
jferris authored
5 require 'yard'
5133fa9 @gabebw Use Bundler gem tasks.
gabebw authored
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
10
15f36c8 Now running features with Rake
Joe Ferris authored
11 desc 'Default: run the specs and features.'
6b0b3ce @jferris Use appraisal for testing across ActiveRecord versions
jferris authored
12 task :default => 'spec:unit' do
5147f8b @joshuaclayton Update gem dependencies and allow for testing on 1.9.2
joshuaclayton authored
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
14 end
683aa43 @jferris Converted tests to specs
jferris authored
15
f3366b6 @jferris Separated unit and acceptance tests to isolate Rails-related dependen…
jferris authored
16 namespace :spec do
17 desc "Run unit specs"
3b5f90f @jferris Use rspec2
jferris authored
18 RSpec::Core::RakeTask.new('unit') do |t|
c59981d @jferris Split factories/sequences into separate registries most of the time;
jferris authored
19 t.pattern = 'spec/{*_spec.rb,factory_girl/**/*_spec.rb}'
f3366b6 @jferris Separated unit and acceptance tests to isolate Rails-related dependen…
jferris authored
20 end
21
22 desc "Run acceptance specs"
3b5f90f @jferris Use rspec2
jferris authored
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
25 end
6f663a7 @jferris Added a blank README and a simple rake file
jferris authored
26 end
27
f3366b6 @jferris Separated unit and acceptance tests to isolate Rails-related dependen…
jferris authored
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
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
35
a7828ff @jferris Switch to yard
jferris authored
36 YARD::Rake::YardocTask.new do |t|
37 end
38
Something went wrong with that request. Please try again.