summaryrefslogtreecommitdiff
path: root/spec/ruby/library/erb/run_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/erb/run_spec.rb')
-rw-r--r--spec/ruby/library/erb/run_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/erb/run_spec.rb b/spec/ruby/library/erb/run_spec.rb
index 8c07442d8f..602e53ab38 100644
--- a/spec/ruby/library/erb/run_spec.rb
+++ b/spec/ruby/library/erb/run_spec.rb
@@ -6,7 +6,7 @@ describe "ERB#run" do
# lambda { ... }.should output
def _steal_stdout
orig = $stdout
- s = ''
+ s = +''
def s.write(arg); self << arg.to_s; end
$stdout = s
begin