Sha256: 89f0ce9fd028c4ef8e81825169c7c05e19554afcc399bf83f33954bf84003c17

Contents?: true

Size: 542 Bytes

Versions: 9

Compression:

Stored size: 542 Bytes

Contents

#!/usr/bin/env ruby

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

# Need to use wall time for this test due to the sleep calls
RubyProf::measure_mode = RubyProf::WALL_TIME

# --  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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
jeremy-ruby-prof-0.6.1 test/profile_unit_test.rb
ruby-prof-0.5.2-mswin32 test/profile_unit_test.rb
ruby-prof-0.5.1-mswin32 test/profile_unit_test.rb
ruby-prof-0.5.0-mswin32 test/profile_unit_test.rb
ruby-prof-0.5.2 test/profile_unit_test.rb
ruby-prof-0.6.0-x86-mswin32-60 test/profile_unit_test.rb
ruby-prof-0.5.1 test/profile_unit_test.rb
ruby-prof-0.6.0 test/profile_unit_test.rb
ruby-prof-0.5.0 test/profile_unit_test.rb