Sha256: 7f68dfe6308752fa0a5d9f15aa830e1e4510c089d4b29e546eca2e0339df16fa

Contents?: true

Size: 877 Bytes

Versions: 1

Compression:

Stored size: 877 Bytes

Contents

require 'test_helper'

module Vedeu

  describe Refresh do

    before { Interfaces.reset }

    describe '.all' do
      it 'returns an empty collection when there are no registered ' \
         'interfaces' do
        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 # Refresh

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.2.10 test/lib/vedeu/support/refresh_test.rb