Sha256: 6d7afa292ef5092d6f74b8cee533300564323c56cecb69459704b2b2f9fc16a9
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
RSpec.describe TTY::Pager::SystemPager, '#new' do it "raises error if system paging is not supported" do allow(TTY::Pager::SystemPager).to receive(:exec_available?).and_return(false) expect { TTY::Pager::SystemPager.new }.to raise_error(TTY::Pager::Error, "TTY::Pager::SystemPager cannot be used on your system due to lack of appropriate pager executable. Install `less` like pager or try using `BasicPager` instead.") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tty-pager-0.11.0 | spec/unit/system/new_spec.rb |