Sha256: 5ca72c781b1bd2be67fed10057ae1fe546ad6dcb8de8f1d223b13a70ff27b4b3
Contents?: true
Size: 848 Bytes
Versions: 4
Compression:
Stored size: 848 Bytes
Contents
require 'test_helper' module Vedeu describe Refresh do describe '.all' do it 'returns an empty collection when there are no registered ' \ 'interfaces' do Interfaces.reset Refresh.all.must_equal([]) end end describe '.by_focus' do it 'raises an exception when there are no registered interfaces' do Focus.reset proc { Refresh.by_focus }.must_raise(NoInterfacesDefined) end end describe '.by_group' do it 'raises an exception when the group cannot be found' do Groups.reset proc { Refresh.by_group('') }.must_raise(GroupNotFound) end end describe '.by_name' do it 'raises an exception when the buffer cannot be found' do proc { Refresh.by_name('') }.must_raise(BufferNotFound) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems