Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (30 sloc) 1.051 kb
d4f9a4d use bundler instead of jeweler to manage gem
anna authored
1 require 'bundler'
2 Bundler::GemHelper.install_tasks
3
ca834db @langalex switched to jeweler for managing the gem
authored
4 require 'rake'
d4f9a4d use bundler instead of jeweler to manage gem
anna authored
5 require "rspec/core/rake_task"
d11083b added dependent destroy, nullify for independent objects, added rakef…
Alexander Lang authored
6
7 task :default => :spec
8
2a19b7a @jweiss Remove validatable support and fix ActiveModel 3.1 compatability
jweiss authored
9 desc "Run functional specs"
10 RSpec::Core::RakeTask.new(:spec_functional) do |spec|
d4f9a4d use bundler instead of jeweler to manage gem
anna authored
11 spec.pattern = 'spec/*_spec.rb'
12 spec.rspec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
d11083b added dependent destroy, nullify for independent objects, added rakef…
Alexander Lang authored
13 end
dc02324 stole rake task from jchris-couchrest to generate github compatible g…
Alexander Lang authored
14
2a19b7a @jweiss Remove validatable support and fix ActiveModel 3.1 compatability
jweiss authored
15 desc "Run unit specs"
16 RSpec::Core::RakeTask.new(:spec_unit) do |spec|
d4f9a4d use bundler instead of jeweler to manage gem
anna authored
17 spec.pattern = 'spec/unit/*_spec.rb'
18 spec.rspec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
f89306d added #all method for finding stuff on associations (see readme), sta…
Alexander Lang authored
19 end
20
eda8285 added rake task for running all specs
Alexander Lang authored
21 desc "Run all specs"
f44eb2e @langalex run specs with activesupport 3.0 and 3.1
authored
22 task :spec do
b9a867f @langalex let travis handle gem files
authored
23 if ENV['TRAVIS'] # travis handles the environments for us
24 Rake::Task[:spec_unit].execute
25 Rake::Task[:spec_functional].execute
26 else
a6c4cd5 @langalex drops support for rails 3
authored
27 ['4_0', '4_1', '4_2'].each do |version|
b9a867f @langalex let travis handle gem files
authored
28 Bundler.with_clean_env do
76a0015 @langalex add statement about activesupport version to test output
authored
29 puts "Running tests with ActiveSupport #{version.sub('_', '.')}"
a683286 @langalex this actually runs the specs with different gems
authored
30 sh "env BUNDLE_GEMFILE=active_support_#{version} bundle install"
31 sh "env BUNDLE_GEMFILE=active_support_#{version} bundle exec rake spec_unit spec_functional"
b9a867f @langalex let travis handle gem files
authored
32 end
f44eb2e @langalex run specs with activesupport 3.0 and 3.1
authored
33 end
34 end
324e8f9 @langalex added rdoc task, shoved around comments to show in rdocs
authored
35 end
Something went wrong with that request. Please try again.