File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ def inspect
1313 str += "IRB version: #{ IRB . version } \n "
1414 str += "InputMethod: #{ IRB . CurrentContext . io . inspect } \n "
1515 str += ".irbrc path: #{ IRB . rc_file } \n " if File . exist? ( IRB . rc_file )
16+ str += "RUBY_PLATFORM: #{ RUBY_PLATFORM } \n "
1617 str
1718 end
1819 alias_method :to_s , :inspect
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ def test_irb_info_multiline
4848 Ruby\s version: .+\n
4949 IRB\s version:\s irb .+\n
5050 InputMethod:\s ReidlineInputMethod\s with\s Reline .+ and .+\n
51- \. irbrc\s path: .+
51+ \. irbrc\s path: .+\n
52+ RUBY_PLATFORM: .+
5253 }x
5354 assert_match expected , irb . context . main . irb_info . to_s
5455 end
@@ -67,7 +68,8 @@ def test_irb_info_singleline
6768 Ruby\s version: .+\n
6869 IRB\s version:\s irb .+\n
6970 InputMethod:\s ReadlineInputMethod\s with .+ and .+\n
70- \. irbrc\s path: .+
71+ \. irbrc\s path: .+\n
72+ RUBY_PLATFORM: .+
7173 }x
7274 assert_match expected , irb . context . main . irb_info . to_s
7375 end
@@ -89,6 +91,7 @@ def test_irb_info_multiline_without_rc_files
8991 Ruby\s version: .+\n
9092 IRB\s version:\s irb .+\n
9193 InputMethod:\s ReidlineInputMethod\s with\s Reline\s [^ ]+(?!\s and\s .+)\n
94+ RUBY_PLATFORM: .+\n
9295 \z
9396 }x
9497 assert_match expected , irb . context . main . irb_info . to_s
@@ -115,6 +118,7 @@ def test_irb_info_singleline_without_rc_files
115118 Ruby\s version: .+\n
116119 IRB\s version:\s irb .+\n
117120 InputMethod:\s ReadlineInputMethod\s with\s (?~.*\s and\s .+)\n
121+ RUBY_PLATFORM: .+\n
118122 \z
119123 }x
120124 assert_match expected , irb . context . main . irb_info . to_s
You can’t perform that action at this time.
0 commit comments