Sha256: b487f7677da97adabac7eeb1169c1ac3834cf2b9980e8cbf503c380495710489
Contents?: true
Size: 1.04 KB
Versions: 5
Compression:
Stored size: 1.04 KB
Contents
require 'bundler' Bundler::GemHelper.install_tasks name: 'couch_potato' require 'rake' require 'rspec/core/rake_task' task default: :spec desc 'Run functional specs' RSpec::Core::RakeTask.new(:spec_functional) do |spec| spec.pattern = 'spec/*_spec.rb' spec.rspec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""] end desc 'Run unit specs' RSpec::Core::RakeTask.new(:spec_unit) do |spec| spec.pattern = 'spec/unit/*_spec.rb' spec.rspec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""] end desc 'Run all specs' task :spec_ci do Rake::Task[:spec_unit].execute Rake::Task[:spec_functional].execute end desc 'Run all specs for all gemfiles' task :spec do %w(7_0 6_1 6_0 5_2 5_1 5_0).each do |version| Bundler.with_clean_env do puts "Running tests with ActiveSupport #{version.sub('_', '.')}" sh "env BUNDLE_GEMFILE=gemfiles/active_support_#{version} bundle install" sh "env BUNDLE_GEMFILE=gemfiles/active_support_#{version} bundle exec rake spec_unit spec_functional" end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
couch_potato-1.12.1 | Rakefile |
couch_potato-1.12.0 | Rakefile |
couch_potato-1.11.0 | Rakefile |
couch_potato-1.10.1 | Rakefile |
couch_potato-1.10.0 | Rakefile |