infinity_test do
  
  use :rubies => %w(1.8.6 1.8.7 1.9.2 ree rbx), :test_framework => :rspec
  
  before(:each_ruby) do |environment|
    environment.system('bundle install')
    environment.system('rake compile')
  end
  
  after(:each_ruby) do |environment|
    environment.system("rake clean_and_clobber_without_verbose")
  end
  
  heuristics do
    add("^ext/*/(.*)\.c") do |file|
      run :all => :tests
    end
    
    add("^ext/*/(.*)\.h") do |file|
      run :all => :tests
    end
  end
end
