From 6b64073c019855083b92b9f5dcff579d92fa6fbc Mon Sep 17 00:00:00 2001 From: Kyrylo Silin Date: Sun, 2 Jun 2019 09:49:42 +0300 Subject: spec/commands/show_doc: test against a different command 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. --- spec/commands/show_doc_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1