diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-11-25 09:49:28 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-11-25 09:49:28 +0900 |
| commit | a89d15cddef567297d347e6d857ac849a56edc20 (patch) | |
| tree | 78936cad00c316c6fbe4cbda2450a04bd52ffb50 /mrbgems/mruby-bin-mruby/bintest/mruby.rb | |
| parent | 1d1c81258e45206da6711de7589822cdec450e90 (diff) | |
| parent | 9de7130a9a77482b27a101211ff0f4a63d57a613 (diff) | |
| download | mruby-a89d15cddef567297d347e6d857ac849a56edc20.tar.gz mruby-a89d15cddef567297d347e6d857ac849a56edc20.zip | |
Merge pull request #4827 from shuujii/support-short-options-concatenation-to-mruby-command
Support short options concatenation to `mruby` command
Diffstat (limited to 'mrbgems/mruby-bin-mruby/bintest/mruby.rb')
| -rw-r--r-- | mrbgems/mruby-bin-mruby/bintest/mruby.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mrbgems/mruby-bin-mruby/bintest/mruby.rb b/mrbgems/mruby-bin-mruby/bintest/mruby.rb index e032ff79a..8da51bac9 100644 --- a/mrbgems/mruby-bin-mruby/bintest/mruby.rb +++ b/mrbgems/mruby-bin-mruby/bintest/mruby.rb @@ -80,10 +80,8 @@ assert('mruby -c option') do end assert('mruby -d option') do - o = `#{cmd('mruby')} -e #{shellquote('p $DEBUG')}` - assert_equal "false\n", o - o = `#{cmd('mruby')} -d -e #{shellquote('p $DEBUG')}` - assert_equal "true\n", o + assert_mruby("false\n", "", true, ["-e", "p $DEBUG"]) + assert_mruby("true\n", "", true, ["-dep $DEBUG"]) end assert('mruby -e option (no code specified)') do |
