diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2019-06-02 09:49:42 +0300 |
---|---|---|
committer | Kyrylo Silin <silin@kyrylo.org> | 2019-06-09 18:42:34 +0300 |
commit | 6b64073c019855083b92b9f5dcff579d92fa6fbc (patch) | |
tree | 29bc86309e9e66063f668d2cf7dbb020353cb2e9 | |
parent | 3f784d1d32af4187ae88bd4fd991bd03a154fc37 (diff) | |
download | pry-randomize-tests.tar.gz |
spec/commands/show_doc: test against a different commandrandomize-tests
This test sometimes fails (depends on the order of execution of specs). This is
probably because `ls` is not always defined at the time of invocation. `help` is
guaranteed to exist because it's generated by Slop.
-rw-r--r-- | spec/commands/show_doc_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/commands/show_doc_spec.rb b/spec/commands/show_doc_spec.rb index 58cc7a62..d7ec39b6 100644 --- a/spec/commands/show_doc_spec.rb +++ b/spec/commands/show_doc_spec.rb @@ -417,7 +417,7 @@ describe "show-doc" do end it 'should display help for a specific command' do - expect(pry_eval('show-doc ls')).to match(/Usage: ls/) + expect(pry_eval('show-doc help')).to match(/Usage: help/) end it 'should display help for a regex command with a "listing"' do |