Skip to content

Commit 085ac42

Browse files
committed
Escape space in free-spacing mode
1 parent 759be5a commit 085ac42

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

test/irb/test_cmd.rb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ def test_irb_info_multiline
7575
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
7676
IRB.conf[:MAIN_CONTEXT] = irb.context
7777
expected = %r{
78-
Ruby\sversion: .+\n
79-
IRB\sversion:\sirb .+\n
78+
Ruby\sversion:\s.+\n
79+
IRB\sversion:\sirb\s.+\n
8080
InputMethod:\sAbstract\sInputMethod\n
81-
\.irbrc\spath: .+\n
82-
RUBY_PLATFORM: .+
81+
\.irbrc\spath:\s.+\n
82+
RUBY_PLATFORM:\s.+\n
8383
}x
8484
assert_match expected, irb.context.main.irb_info.to_s
8585
ensure
@@ -100,11 +100,11 @@ def test_irb_info_singleline
100100
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
101101
IRB.conf[:MAIN_CONTEXT] = irb.context
102102
expected = %r{
103-
Ruby\sversion: .+\n
104-
IRB\sversion:\sirb .+\n
103+
Ruby\sversion:\s.+\n
104+
IRB\sversion:\sirb\s.+\n
105105
InputMethod:\sAbstract\sInputMethod\n
106-
\.irbrc\spath: .+\n
107-
RUBY_PLATFORM: .+
106+
\.irbrc\spath:\s.+\n
107+
RUBY_PLATFORM:\s.+\n
108108
}x
109109
assert_match expected, irb.context.main.irb_info.to_s
110110
ensure
@@ -128,10 +128,10 @@ def test_irb_info_multiline_without_rc_files
128128
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
129129
IRB.conf[:MAIN_CONTEXT] = irb.context
130130
expected = %r{
131-
Ruby\sversion: .+\n
132-
IRB\sversion:\sirb .+\n
131+
Ruby\sversion:\s.+\n
132+
IRB\sversion:\sirb\s.+\n
133133
InputMethod:\sAbstract\sInputMethod\n
134-
RUBY_PLATFORM: .+\n
134+
RUBY_PLATFORM:\s.+\n
135135
\z
136136
}x
137137
assert_match expected, irb.context.main.irb_info.to_s
@@ -159,10 +159,10 @@ def test_irb_info_singleline_without_rc_files
159159
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
160160
IRB.conf[:MAIN_CONTEXT] = irb.context
161161
expected = %r{
162-
Ruby\sversion: .+\n
163-
IRB\sversion:\sirb .+\n
162+
Ruby\sversion:\s.+\n
163+
IRB\sversion:\sirb\s.+\n
164164
InputMethod:\sAbstract\sInputMethod\n
165-
RUBY_PLATFORM: .+\n
165+
RUBY_PLATFORM:\s.+\n
166166
\z
167167
}x
168168
assert_match expected, irb.context.main.irb_info.to_s

0 commit comments

Comments
 (0)