Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

shift with_deprecation_silenced method out to a spec/support file

  • Loading branch information...
commit 1614ebdb0045c2bfd437ca17c3008db1e4c01b16 1 parent 5332328
Justin French authored
Showing with 6 additions and 6 deletions.
  1. +0 −6 spec/spec_helper.rb
  2. +6 −0 spec/support/deprecation.rb
6 spec/spec_helper.rb
View
@@ -307,12 +307,6 @@ def with_config(config_method_name, value, &block)
::Formtastic::SemanticFormBuilder.send(:"#{config_method_name}=", old_value)
end
- def with_deprecation_silenced(&block)
- ::ActiveSupport::Deprecation.silenced = true
- yield
- ::ActiveSupport::Deprecation.silenced = false
- end
-
end
::ActiveSupport::Deprecation.silenced = false
6 spec/support/deprecation.rb
View
@@ -0,0 +1,6 @@
+def with_deprecation_silenced(&block)
+ ::ActiveSupport::Deprecation.silenced = true
+ yield
+ ::ActiveSupport::Deprecation.silenced = false
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.