1
0
Fork 0
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:
Kyrylo Silin 2013-01-14 17:42:20 +02:00
parent 2fe52d6e75
commit 5871054c05

View file

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