require File.expand_path('../warnings_spy', __FILE__) # Adapted from warnings_spy = WarningsSpy.new('shoulda-matchers') warnings_spy.capture_warnings warnings_spy.report_warnings_at_exit