PreEx is a testing tool based on Ruby RSpec, which sets expectation before method in real code is triggered.