aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-01-06 01:03:53 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-01-06 01:04:33 -0300
commitb33bd077fab8e249ba3ddfb7e656c34243c05a1d (patch)
treecc00b02e74d354ffbb47c5fd734d9911065c66b2 /activesupport/lib/active_support/testing
parent2958a1e14e1636ae84d3580f4c7a5a7baeab2b8b (diff)
downloadrails-b33bd077fab8e249ba3ddfb7e656c34243c05a1d.tar.gz
rails-b33bd077fab8e249ba3ddfb7e656c34243c05a1d.tar.bz2
rails-b33bd077fab8e249ba3ddfb7e656c34243c05a1d.zip
Remove Array.wrap calls in ActiveSupport
Diffstat (limited to 'activesupport/lib/active_support/testing')
-rw-r--r--activesupport/lib/active_support/testing/assertions.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/testing/assertions.rb b/activesupport/lib/active_support/testing/assertions.rb
index 4e1a58a801..d84595fa8f 100644
--- a/activesupport/lib/active_support/testing/assertions.rb
+++ b/activesupport/lib/active_support/testing/assertions.rb
@@ -1,4 +1,3 @@
-require 'active_support/core_ext/array/wrap'
require 'active_support/core_ext/object/blank'
module ActiveSupport
@@ -45,7 +44,7 @@ module ActiveSupport
# post :delete, :id => ...
# end
def assert_difference(expression, difference = 1, message = nil, &block)
- expressions = Array.wrap expression
+ expressions = Array(expression)
exps = expressions.map { |e|
e.respond_to?(:call) ? e : lambda { eval(e, block.binding) }