Sha256: e21f5d14a8b7c09520a9fc78b1a49095afc24dd1d7d4c5e8dee50328207ab442

Contents?: true

Size: 485 Bytes

Versions: 1

Compression:

Stored size: 485 Bytes

Contents

#!/usr/bin/env ruby

# stacktrace.rb
# Kernel#stacktrace unit tests

require 'test/unit'

require 'pathname'
dir = Pathname.new(File.expand_path(__FILE__)).realpath
require File.join(File.dirname(dir.to_s), '../lib/rex')

class StacktraceTests < Test::Unit::TestCase
  def test_stacktrace
    actual = nil

    assert_nothing_raised do
      actual = stacktrace
    end

    assert_not_nil(actual)
    assert_instance_of(Array, actual)
    assert_equal(false, actual.empty?)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rex-0.0.4 test/stacktrace.rb