#!/usr/bin/env ruby

require 'test/unit'
require 'ruby-prof'
require 'timeout'
require 'test_helper'
require 'ruby-prof/profile_test_case'

# --  Tests ----
class ProfileTest < Test::Unit::TestCase
  def test_profile
    sleep(2)    
  end

  def teardown
    profile_dir = output_directory
    assert(File.exists?(profile_dir))
    
    file_path = File.join(profile_dir, 'test_profile_profile_test.html')
    assert(File.exists?(file_path))
  end
end

Test for profiling unit tests.
Test for profiling unit tests.

git-svn-id: a649f8b53cef7d15963550bf81aeba716f52dec1@136 5fb4a865-4516-0410-ae3b-a609ddf12040
