spec/spec_helper.rb in merch_calendar-0.1.0.rc1 vs spec/spec_helper.rb in merch_calendar-0.1.0.rc2
- old
+ new
@@ -12,6 +12,17 @@
RSpec.configure do |config|
config.mock_with :rspec do |mocks_config|
mocks_config.verify_doubled_constant_names = true
mocks_config.verify_partial_doubles = true
end
-end
\ No newline at end of file
+
+ config.around do |example|
+ # Hide deprecation warnings within this gem from showing up in tests
+ if Date.today < MerchCalendar::DEPRECATION_DATE
+ Gem::Deprecate.skip_during do
+ example.run
+ end
+ else
+ example.run
+ end
+ end
+end