ASpec is a simple library that utilizes aspect oriented programming and meta programming to enable method stubbing, method call counting, Liskov Substition Principle testing and more.
ASpec is available as a gem. Use this command to install:
gem install aspeclib
See the test cases in lib/aspec_test.rb for examples of ASpec.
For more information, see the paper ASpec: Unit Testing Using Aspect-Oriented Programming.