mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
gist_spec: remove some repetitive code
This commit is contained in:
parent
2fe52d6e75
commit
5871054c05
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,9 @@
|
|||
require 'helper'
|
||||
|
||||
describe 'gist' do
|
||||
before do
|
||||
Pad.jist_calls = {}
|
||||
end
|
||||
|
||||
# In absence of normal mocking, just monkeysmash these with no undoing after.
|
||||
module Jist
|
||||
|
@ -24,7 +26,6 @@ describe 'gist' do
|
|||
it 'nominally logs in' do
|
||||
pry_eval 'gist --login'
|
||||
Pad.jist_calls[:login!].should.not.be.nil
|
||||
Pad.jist_calls = {}
|
||||
end
|
||||
|
||||
EXAMPLE_REPL_METHOD = <<-EOT
|
||||
|
@ -51,7 +52,6 @@ describe 'gist' do
|
|||
args[:filename].should.not == '(pry)'
|
||||
end
|
||||
Pad.jist_calls[:copy_args].should.not.be.nil
|
||||
Pad.jist_calls = {}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue