Sha256: 24b07714862e1089ceff0b330aeb9ee2b99e2a4ebda03b2c1c12bd8fad4f3123
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
require "bundler/gem_tasks" require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) RAILS_VERSIONS = [ "3.2.17", "4.0.13" ] def run_tests_for_version(version) commands = [] commands << "rm Gemfile.lock" commands << "export RAILS_VERSION=#{version}" commands << "bundle update" commands << "bundle exec rspec" system(commands.join(';')) end task :default 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cp-sparrow-0.0.11 | Rakefile |