Sha256: eb2a820375f1d0206c48dc46d5f10d45d106dd9811731ea48533bff6c5141fe4

Contents?: true

Size: 670 Bytes

Versions: 8

Compression:

Stored size: 670 Bytes

Contents

module Etest::Assertions::Etest
  #
  # this actually tests the existance of an assertion and one successful
  # assertion, nothing less, and nothing more...
  def test_asserts
    assert_respond_to "nsn", :upcase
    assert respond_to?(:assert_invalid)
    assert respond_to?(:assert_valid)
  end

  class TestError < RuntimeError; end
  
  def test_assert_raises_kind_of
    assert_raises_kind_of RuntimeError do 
      raise TestError
    end
  end
  
  def test_assert_file_exist
    assert_file_exist __FILE__
  end
  
  def test_xml
    assert_valid_xml <<-XML
<root>
<p> lkhj </p>
</root>
XML
  
    assert_invalid_xml <<-XML
<root>
<p> lkhj </p>
XML
  end
end

Version data entries

8 entries across 7 versions & 1 rubygems

Version Path
etest-0.6.3 test/assertions.rb
etest-0.6.2 test/assertions.rb
etest-0.6.1 test/assertions.rb
etest-0.6.0 test/assertions.rb
etest-0.4.2 test/etest_assertions.rb
etest-0.4.2 test/assertions.rb
etest-0.4.1 test/etest_assertions.rb
etest-0.4 test/etest_assertions.rb