Sha256: 8e5fa7382e7770d9566df374e12cf9e3a27361c9c2a8c46311e1674d745b57dc
Contents?: true
Size: 382 Bytes
Versions: 1
Compression:
Stored size: 382 Bytes
Contents
# encoding: utf-8 RSpec.describe TTY::Pager::SystemPager, '#new' do it "raises error if system paging is not supported" do allow(TTY::Pager::SystemPager).to receive(:can?).and_return(false) expect { TTY::Pager::SystemPager.new }.to raise_error(TTY::Pager::Error, "TTY::Pager::SystemPager cannot be used on your system. Try using BasicPager instead.") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tty-pager-0.8.0 | spec/unit/system/new_spec.rb |