mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
12cc7aaace
Run RSpec tests with warnings enabled so we stay on top of this better in the future.
7 lines
259 B
Ruby
7 lines
259 B
Ruby
require File.expand_path('../warnings_spy', __FILE__)
|
|
|
|
# Adapted from <http://myronmars.to/n/dev-blog/2011/08/making-your-gem-warning-free>
|
|
|
|
warnings_spy = WarningsSpy.new('shoulda-matchers')
|
|
warnings_spy.capture_warnings
|
|
warnings_spy.report_warnings_at_exit
|