Sha256: 110d4d6585125541aa99c953a68c64f32d5f12dfde1b28995f4bc632b042a19f

Contents?: true

Size: 1.05 KB

Versions: 9

Compression:

Stored size: 1.05 KB

Contents

require 'rubygems'
require 'bundler'
Bundler.setup

require 'rake'
require 'rake/testtask'

require 'appraisal'

desc 'Default: run all tests.'
task :default => :test

desc "Test state_machine."
Rake::TestTask.new(:test) do |t|
  integration = %w(active_model active_record data_mapper mongoid mongo_mapper sequel).detect do |name|
    Bundler.default_gemfile.to_s.include?(name)
  end
  
  t.libs << 'lib'
  t.test_files = integration ? Dir["test/unit/integrations/#{integration}_test.rb"] : Dir['test/{functional,unit}/*_test.rb'] + ['test/unit/integrations/base_test.rb']
  t.verbose = true
  t.warning = true if ENV['WARNINGS']
end

namespace :appraisal do
  desc "Run the given task for a particular integration's appraisals"
  task :integration do
    integration = ENV['INTEGRATION']
    
    Appraisal::File.each do |appraisal|
      if appraisal.name.include?(integration)
        appraisal.install
        Appraisal::Command.from_args(appraisal.gemfile_path).run
      end
    end
    
    exit
  end
end

load File.dirname(__FILE__) + '/lib/tasks/state_machine.rake'

Version data entries

9 entries across 9 versions & 7 rubygems

Version Path
state_machine_updated_for_ruby_3_2-2.0.0 Rakefile
telvue_state_machine-1.2.3 Rakefile
telvue_state_machine-1.2.2 Rakefile
state_machine_deuxito-0.0.1 Rakefile
telvue_state_machine-1.2.1 Rakefile
cm-state_machine-1.2.0.1 Rakefile
culturecode-state_machine-1.2.1 Rakefile
automat-1.2.0 Rakefile
state_machine-1.2.0 Rakefile