Sha256: d14e070f8f2f22d8c3832f5c8347f00cd9bad2ec82486fe50f052f45f78e0ae0
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
# frozen_string_literal: true RSpec.describe TTY::Pager::SystemPager do it "provides executable names" do allow(ENV).to receive(:[]).with('GIT_PAGER').and_return(nil) allow(ENV).to receive(:[]).with('PAGER').and_return(nil) allow(described_class).to receive(:command_exists?).with('git').and_return(false) expect(described_class.executables).to eq(['less', 'more', 'cat', 'pager', 'pg', 'most']) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tty-pager-0.11.0 | spec/unit/system/executables_spec.rb |