Sha256: 35868a2b98b9b787bbde8a20d35841a3ead55be3733453d6222c0109666756f0
Contents?: true
Size: 740 Bytes
Versions: 2
Compression:
Stored size: 740 Bytes
Contents
require "bundler/gem_tasks" require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) RAILS_VERSIONS = [ "3.2.21", "4.0.13" ] def run_tests_for_version(version) commands = [] commands << "rm Gemfile.lock" commands << "gem install rails -v #{version}" commands << "bundle install" commands << "bundle exec rspec" system({'RAILS_VERSION' => version}, commands.join(';')) end task :all do RAILS_VERSIONS.each do |version| puts "Testing gem for rails version: #{version}" success = run_tests_for_version(version) if not success puts "Test suite aborted, errors occured." exit($?.exitstatus) end end end task :default do run_tests_for_version(ENV['RAILS_VERSION'] || '3.2.21') end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cp-sparrow-0.0.14 | Rakefile |
cp-sparrow-0.0.12 | Rakefile |