Class: Test::Unit::TestCase

Inherits:
Object
  • Object
show all
Defined in:
lib/rtml/test/unit.rb

Instance Method Summary collapse

Instance Method Details

#assert_tml_not_resemble(expected_hash, tml) ⇒ Object



9
10
11
12
# File 'lib/rtml/test/unit.rb', line 9

def assert_tml_not_resemble(expected_hash, tml)
  assert !Rtml::Test::ResemblanceTest.new(expected_hash, target).pass?,
         "Expected #{expected_hash.inspect} not to resemble:\n\n#{tml}"
end

#assert_tml_resembles(expected_hash, tml) ⇒ Object



4
5
6
7
# File 'lib/rtml/test/unit.rb', line 4

def assert_tml_resembles(expected_hash, tml)
  assert Rtml::Test::ResemblanceTest.new(expected_hash, target).pass?,
         "Expected #{expected_hash.inspect} to resemble:\n\n#{tml}"
end