Sha256: aac7342f36db79a36de0b1d5e85d686c15bb3217a4180079a81ee8d9856cc864

Contents?: true

Size: 587 Bytes

Versions: 2

Compression:

Stored size: 587 Bytes

Contents

#!/usr/bin/env ruby
require 'test/unit'
require 'rubygems'; require 'require_relative'
require_relative '../../app/run'

class TestAppRun < Test::Unit::TestCase
  include Trepan
  def test_whence
    assert_equal(true, File.executable?(whence_file('irb')))
    ng = whence_file('probably-does-not-exist')
    assert_equal(true, File.executable?(ng) || ng == 'probably-does-not-exist')
  end

  def test_ruby_syntax_errors
    assert_nil ruby_syntax_errors __FILE__
    readme = File.join(File.dirname(__FILE__), %w(.. .. README.textile))
    assert ruby_syntax_errors(readme)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rb8-trepanning-0.1.5 test/unit/test-app-run.rb
rb8-trepanning-0.1.4 test/unit/test-app-run.rb