From: niklas | brueckenschlaeger Date: 2010-11-21T14:25:34+09:00 Subject: Re: contradicting unit test regarding blocks pass, bug in unit/test? --=-IS1wrq7dPu9g97MCdGGS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable probably because it returns from your test method without further processing the assert_nothing_raised call. It's placed correctly, as it's within a method and evaluated while the method is still on the stack On Sat, 2010-11-20 at 15:35 +0900, timr wrote: > One last try: > #In fact, calling a method with a block with top level return > raises a LocalJumpError. So why is the assert_nothing_raised do; > blk{return}; end passing? >=20 --=-IS1wrq7dPu9g97MCdGGS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAABAgAGBQJM6K1HAAoJEIQdQGZOjo82W30P/2Ls4fJPLFm9e5Zkh7p3adRu sdXx+rggD2kW7X6ym4AcnhZ6h2im+HqYz7lv/i+LdgWVmmce4gIASp771xpwZzFM S+4XSBc/+nPiT4D+pNYIb6Kn9hWh65Q9XiRN+VryYD3Cuzpr1zqMki9GUivviaSP H6WoepdqIws5xvafHY2E/gdc5HLTOffFtGwAZ+Fxtto/6ptFQoIP+LWFPPmXj//v 1UYiItXR9kQW7UVlAefEZyAq63Z4Hvi1mSEOVcptCUw7kMfe1iSzpWwxhbX6X1St aF+U3VwrTQK9qJiJdZUsshgSHJBzqPJycHzJVkMYUOq4IFKaWNm7q/3vYAN6DhyQ hGcvypz6aJzQLg1SF2Thmu9VKB9IeZl1JTyHDyTRI2qqD/UtKdQHIMo0KQ5UA8p6 +UyBSj68ysvfBvctQQAKn7WbBT6QporI1tXkWH9VH2YQHHNbDQGr8PyrMz/x+hHM /2JACgxzJ37GhLC7H9QZU88DaG7ugthsYfo/LaDRBKFWzVVFod02PbBQilRFfiIR loWUiIZ2rNu9HaUYguRSFiVhmCEOlASgz1WtYnqHDMwSNOq8BULsGFYQq0KBLGQj +qI9+lOC0NlZIqv76xAzJit4PIquhI7jxTsREludWvsMl6QkogVdS2HjC4LyNT9q y47IRNCpp8Jre5VyR4Ah =z5tH -----END PGP SIGNATURE----- --=-IS1wrq7dPu9g97MCdGGS--