mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
gist: re-add 'jist' gem dependency with :requires_gem
Oops, forgetting this meant that 'gist' command would error out with ugly messages rather than prompting the user to 'install-command'
This commit is contained in:
parent
24437c7e21
commit
c10017f17d
2 changed files with 7 additions and 2 deletions
|
@ -3,6 +3,7 @@ class Pry
|
|||
match 'gist'
|
||||
group 'Misc'
|
||||
description 'Playback a string variable or a method or a file as input.'
|
||||
command_options :requires_gem => "jist"
|
||||
|
||||
banner <<-'BANNER'
|
||||
Usage: gist [OPTIONS] [--help]
|
||||
|
|
|
@ -2,10 +2,14 @@
|
|||
# THey need to be updated for the new 'gist' API, but im too sleepy to
|
||||
# do that now.
|
||||
|
||||
require 'helper'
|
||||
|
||||
# require 'helper'
|
||||
describe 'gist' do
|
||||
it 'has a dependency on the jist gem' do
|
||||
Pry::Command::Gist.command_options[:requires_gem].should == "jist"
|
||||
end
|
||||
end
|
||||
|
||||
# describe 'gist' do
|
||||
# before do
|
||||
# Pad.jist_calls = {}
|
||||
# end
|
||||
|
|
Loading…
Add table
Reference in a new issue