Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (22 sloc) 0.61 kb
require 'rubygems'
require 'rake'
require 'spec/rake/spectask'
spec_files = Rake::FileList["spec/**/*_spec.rb"]
desc "Run specs for current Rails version"
Spec::Rake::SpecTask.new do |t|
t.spec_files = spec_files
t.spec_opts = lambda {
@rails_spec_version ? ["-c --format specdoc -- rails_spec_version=#{@rails_spec_version}"] : ["-c --format specdoc"]
}
end
task :default => :spec
desc "Run Rails 2.x specs"
task :rails2_spec do
@rails_spec_version = 2
Rake::Task['spec'].invoke
end
desc "Run Rails 3.x specs"
task :rails3_spec do
@rails_spec_version = 3
Rake::Task['spec'].invoke
end
Jump to Line
Something went wrong with that request. Please try again.