Sha256: dab144b439ceba9ae6662848a6c07b381e0ae60482e07736c76340bfdaecc548

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

require 'rubygems'
gem 'test-unit'
require 'test/unit'
require 'test/unit/testsuite'
require 'test/unit/ui/console/testrunner'

unless Kernel.respond_to?(:require_relative)
  module Kernel
    def require_relative(path)
      require File.expand_path(path.to_str, File.dirname(caller[0]))
    end
  end
end

require_relative 'respond_with_file_test'
require_relative 'respond_with_string_test'
require_relative 'respond_with_url_test'
require_relative 'respond_with_array_test'
require_relative 'respond_with_number_test'
require_relative 'match_with_reg_test'
require_relative 'response_text_parser_test'

class ALLTests < Test::Unit::TestSuite

  def self.suite
    tests = Test::Unit::TestSuite.new

    tests << ParserTest.suite
    tests << TestRespondWithString.suite
    tests << TestRespondWithFile.suite
    tests << TestRespondWithURL.suite
    tests << TestRespondWithArray.suite
    tests << TestRespondWithStatusCode.suite
    tests << TestMatchWithReg.suite
    
    tests
  end
end


Test::Unit::UI::Console::TestRunner.run( ALLTests )

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
auto_response-0.2.0 test/all-test.rb
auto_response-0.1.8 test/all-test.rb
auto_response-0.1.6 test/all-test.rb