blob: 8fc82b3a7fbddfc949db2b321f3c6d7539f66f40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
describe "show-input" do
before do
@t = pry_tester
end
it 'should correctly show the current lines in the input buffer' do
@t.push(*unindent(<<-STR).split("\n"))
def hello
puts :bing
STR
@t.process_command 'show-input'
expect(@t.last_output).to match(/\A\d+: def hello\n\d+: puts :bing/)
end
end
|