Sha256: b10e90a094d4d59299027fed2642978dba7e81d1a8dbd474a39d5a9e24697dab

Contents?: true

Size: 322 Bytes

Versions: 4

Compression:

Stored size: 322 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe TTY::Terminal::Pager, '#command' do
  let(:pager) { 'vim' }

  subject { described_class }

  context 'when custom command' do
    it 'searches available commands' do
      expect(subject).to receive(:available).with(pager)
      subject.command(pager)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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