aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/console_helpers.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-08-14 15:00:37 -0400
committerGitHub <noreply@github.com>2017-08-14 15:00:37 -0400
commit5ccdd0bb6d1262a670645ddf3a9e334be4545dac (patch)
tree2211326df8c4681bf56f6049a97941c427dd9b02 /railties/test/console_helpers.rb
parent5a5b4816f14f18a4326f37e0a00854c2fcf4904c (diff)
parent7f6a31433a09875828431d0f11029bf0dbddb112 (diff)
downloadrails-5ccdd0bb6d1262a670645ddf3a9e334be4545dac.tar.gz
rails-5ccdd0bb6d1262a670645ddf3a9e334be4545dac.tar.bz2
rails-5ccdd0bb6d1262a670645ddf3a9e334be4545dac.zip
Merge pull request #29891 from pat/frozen-string-literals-railties
Railties updates for frozen string literals.
Diffstat (limited to 'railties/test/console_helpers.rb')
-rw-r--r--railties/test/console_helpers.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/test/console_helpers.rb b/railties/test/console_helpers.rb
index 4b11afa511..8350fce5ee 100644
--- a/railties/test/console_helpers.rb
+++ b/railties/test/console_helpers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
begin
require "pty"
rescue LoadError
@@ -7,7 +9,7 @@ module ConsoleHelpers
def assert_output(expected, io, timeout = 10)
timeout = Time.now + timeout
- output = ""
+ output = "".dup
until output.include?(expected) || Time.now > timeout
if IO.select([io], [], [], 0.1)
output << io.read(1)