1
0
Fork 0
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:
John Mair 2013-01-17 16:51:32 +01:00
parent 24437c7e21
commit c10017f17d
2 changed files with 7 additions and 2 deletions

View file

@ -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]

View file

@ -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