File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -1126,7 +1126,7 @@ def config_command arg
11261126 config_set $1, $2, append : true
11271127
11281128 when /\A \s *append\s +(\w +)\s +(.+)\z /
1129- config_set $1, $2
1129+ config_set $1, $2, append : true
11301130
11311131 when /\A (\w +)\z /
11321132 config_show $1
Original file line number Diff line number Diff line change @@ -276,6 +276,37 @@ def test_skip_path_skip_catch_breakpoint
276276 end
277277 end
278278
279+ class ConfigSetAppend < ConsoleTestCase
280+ def program
281+ <<~RUBY
282+ 1| a = 1
283+ RUBY
284+ end
285+
286+ def test_set_append
287+ debug_code program do
288+ type 'config set skip_path foo'
289+ assert_line_text ( /foo/ )
290+
291+ type 'config set skip_path bar'
292+ assert_no_line_text ( /foo/ )
293+ assert_line_text ( /bar/ )
294+
295+ type 'config skip_path = foo'
296+ assert_no_line_text ( /bar/ )
297+ assert_line_text ( /foo/ )
298+
299+ type 'config append skip_path bar'
300+ assert_line_text ( /foo.+bar/ )
301+
302+ type 'config skip_path << baz'
303+ assert_line_text ( /foo.+bar.+baz/ )
304+
305+ type 'c'
306+ end
307+ end
308+ end
309+
279310 class ConfigKeepAllocSiteTest < ConsoleTestCase
280311 def program
281312 <<~RUBY
You can’t perform that action at this time.
0 commit comments