Sha256: 572e7ceb18959429bffdc2722a14f93010071422518f014de7320916697dc23c

Contents?: true

Size: 274 Bytes

Versions: 4

Compression:

Stored size: 274 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe TTY::Terminal, '#page' do
  let(:text)   { "a\n"}

  subject(:terminal) { described_class.new }

  it 'invokes pager page method' do
    expect(terminal.pager).to receive(:page).with(text)
    terminal.page(text)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tty-0.1.3 spec/tty/terminal/page_spec.rb
tty-0.1.2 spec/tty/terminal/page_spec.rb
tty-0.1.1 spec/tty/terminal/page_spec.rb
tty-0.1.0 spec/tty/terminal/page_spec.rb