Permalink
Browse files

Silence deprecations unless DEPRECATE env var set

  • Loading branch information...
1 parent e74aa50 commit 42703ddc4d18fd4b57563b36e1fc5701147e4ccd @ernie ernie committed May 25, 2013
Showing with 5 additions and 1 deletion.
  1. +1 −1 .ruby-version
  2. +4 −0 spec/spec_helper.rb
View
@@ -1 +1 @@
-ruby-1.9.3-p374
+ruby-1.9.3
View
@@ -26,6 +26,10 @@ def call(name, start, finish, message_id, values)
ActiveSupport::Notifications.subscribe('sql.active_record', SQLCounter.new)
end
+unless ENV['DEPRECATIONS']
+ ActiveSupport::Deprecation.silenced = true
+end
+
Dir[File.expand_path('../helpers/*.rb', __FILE__)].each do |f|
require f
end

0 comments on commit 42703dd

Please sign in to comment.