Permalink
Browse files

shift with_deprecation_silenced method out to a spec/support file

  • Loading branch information...
1 parent 5332328 commit 1614ebdb0045c2bfd437ca17c3008db1e4c01b16 @justinfrench committed Jan 9, 2011
Showing with 6 additions and 6 deletions.
  1. +0 −6 spec/spec_helper.rb
  2. +6 −0 spec/support/deprecation.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
@@ -0,0 +1,6 @@
+def with_deprecation_silenced(&block)
+ ::ActiveSupport::Deprecation.silenced = true
+ yield
+ ::ActiveSupport::Deprecation.silenced = false
+end
+

0 comments on commit 1614ebd

Please sign in to comment.