deanwampler/Aquarium — pull request #33 by keita (2012-04-29 19:10:50+00:00)
Title: Patches for fixing some test problems

Hello,

Thank you very much for aquarium.
I will try my first AOP using aquarium :)
I hope the gem version 0.5.0 will be released.

These are patches for fixing some test problems:

1. ignore useless warning

In 1.9, #const_get makes a warning message when referring some constants like:
Use RbConfig instead of obsolete and deprecated Config.
But I think this warning message is useless in the context of TypeUitls.descendents.

2. fix unexpected failures caused by debug backtraces in advice tests

Some tests in advice spec requires debug backtrace option is true.
I introduced new contexts turns on the option for these tests.

3. fix possible failure of some tests caused that the result order of Set#to_a is not stable.

I confirmed passing all tests with these patches in the following environments:
- ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-linux]
- ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
- jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (OpenJDK Server VM 1.6.0_24) [linux-i386-java]

Thanks,
Keita Yamaguchi