Sha256: d1203769aac67b5f2baa3933e91c7b2a40d6e427c3d35cc77a5d25a118432fa6
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
require 'rib/test' require 'rib/core/readline' describe Rib::Readline do behaves_like :rib before do Rib::Readline.enable @shell = Rib::Shell.new.before_loop end should '#before_loop set @history' do @shell.history.should.eq Readline::HISTORY end should '#get_input calling Readline.readline' do mock(Readline).readline(@shell.prompt, true){'ok'} @shell.get_input.should.eq 'ok' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rib-0.1.0 | test/core/test_readline.rb |