summaryrefslogtreecommitdiff
path: root/lib/test/unit/util/procwrapper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test/unit/util/procwrapper.rb')
-rw-r--r--lib/test/unit/util/procwrapper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit/util/procwrapper.rb b/lib/test/unit/util/procwrapper.rb
index 4d49a52a9d..ad3b4d8a6f 100644
--- a/lib/test/unit/util/procwrapper.rb
+++ b/lib/test/unit/util/procwrapper.rb
@@ -22,7 +22,7 @@ module Test
# Creates a new wrapper for a_proc.
def initialize(a_proc)
@a_proc = a_proc
- @hash = a_proc.inspect.sub(/^(#<#{a_proc.class}:)/){''}.sub(/(>)$/){''}.hex
+ @hash = a_proc.inspect.sub(/^(#<#{a_proc.class}:)/, '').sub(/(>)$/, '').hex
end
def hash # :nodoc: