I am using Ruby Unit test in code like below.
assert_equal(x, 'strin')
I want to change a variable if this test fails and test should be still fail. How can I do that? I did the same in python using following code.
try:
self.assertEqual(self.client.testString(''), '')
except AssertionError, e:
test_basetypes_fails = True
raise AssertionError( e.args )