From b5c012f3705e31201b763ad5f8de1f74ce0710d3 Mon Sep 17 00:00:00 2001 From: James Williams Date: Fri, 31 Jul 2015 11:16:44 -0600 Subject: [PATCH] rails4: silence deprecation warnings in tests make sure to remove this once we're on rails 4 refs #CNVS-21596 Change-Id: I1b6ddef79ab2bae44a81e3e53112725b9c229aff Reviewed-on: https://gerrit.instructure.com/59737 Tested-by: Jenkins Reviewed-by: Cody Cutrer Product-Review: James Williams QA-Review: James Williams --- spec/spec_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3e0eecc3449..c8f03c78a05 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -71,6 +71,10 @@ unless CANVAS_RAILS3 alias_method :compare_without_round, :<=> alias_method :<=>, :compare_with_round end + + # temporary patch to keep things sane + # TODO: actually fix the deprecation messages once we're on Rails 4 permanently and remove this + ActiveSupport::Deprecation.silenced = true end module RSpec::Rails