Sha256: 96c7f0a78b1b5f67e1962b9367332bb02f2262cefbb6d76e5d9cb0201207cf02

Contents?: true

Size: 982 Bytes

Versions: 1

Compression:

Stored size: 982 Bytes

Contents

#!/usr/bin/env ruby

infinity_test do
  
  use :rubies => ['1.8.7', '1.9.2', 'jruby', 'ree', 'rbx'], :gemset => 'infinity_test', :test_framework => :rspec

  # Maybe with block is better ...
  #
  # use do
  #   rubies = %w(1.8.7 1.9.2 jruby ree rbx)
  #   gemset = 'infinity_test'
  #   test_framework = :rspec
  #   application_framework = :rails
  # end

  heuristics do
    add '^lib/infinity_test/dependencies.rb' do |file|
      run :all => :files
    end
  end
  
  after(:all) do
    system('rake clean_without_verbose')
  end

  # heuristics do
  #
  #  add :dir => 'app/models' do |file|
  #    run_test :for => file
  #  end
  #
  #  add %r%^(test|spec)/fixtures/(.*).yml$% do |file|
  #    run_test :for => file, :in_dir => "test"
  #  end
  #
  #   application_library.watch :dir => 'app/models' do |file|
  #     run :test => "spec/models/"
  #   end
  #   
  #   watch(%r%^(test|spec)/fixtures/(.*).yml$%) do |m|
  #     "test/test_#{m[1]}.rb"
  #   end
  # end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
infinity_test-1.0.3 .infinity_test