Sha256: b72c1027c096d897b8cd89e2bef31ad0a6fc981cdca42f122f683d153c4d9a6a

Contents?: true

Size: 975 Bytes

Versions: 3

Compression:

Stored size: 975 Bytes

Contents

require 'pathname'

namespace(:test) do

  task(:all) do
    test_root = Pathname(__FILE__).dirname

    files = %w(
          nanotest/test_failure.rb
          nanotest/test_success.rb
          testunit/test_failure.rb
          testunit/test_success.rb
          minitest/test_failure.rb
          minitest/test_success.rb
           contest/test_failure.rb
           contest/test_success.rb
           context/test_failure.rb
           context/test_success.rb
           shoulda/test_failure.rb
           shoulda/test_success.rb
    )
    files.map! {|file| Pathname(file).expand_path(test_root) }
    files.each {|file| system("ruby -rubygems -I.:lib #{file}") }
  end

  task(:by_fw) do
    test_root  = Pathname(__FILE__).dirname.expand_path
    frameworks = ENV['FW'].downcase.split(',')

    frameworks.each do |framework|
      files = Dir[test_root + framework.strip + '*']
      files.each {|file| system("ruby -rubygems -I.:lib #{file}") }
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
social_url_stats-0.0.1 vendor/ruby/1.9.1/gems/mynyml-redgreen-0.7.1/test/tests.rake
mynyml-redgreen-0.7.1 test/tests.rake
mynyml-redgreen-0.7 test/tests.rake