Sha256: f4e1536918c889b1305bec4f73dae1c5e0b04b2810ea304901ea6af41a291f5e
Contents?: true
Size: 1.31 KB
Versions: 7
Compression:
Stored size: 1.31 KB
Contents
require 'test_helper' module Vedeu describe Refresh do let(:described) { Vedeu::Refresh } before { Vedeu.interfaces.reset } describe '.all' do subject { described.all } it { subject.must_be_instance_of(Array) } context 'when there are no registered interfaces' do it { subject.must_equal([]) } end end describe '.by_focus' do subject { described.by_focus } context 'when there are no registered interfaces' do before { Vedeu.focusable.reset } it { Refresh.by_focus.must_equal(nil) } end context 'when there are registered interfaces' do end end describe '.by_group' do context 'when there are no registered groups' do before { Vedeu.groups.reset } it { proc { Refresh.by_group('') }.must_raise(ModelNotFound) } end context 'when there are registered groups' do end end describe '.by_name' do let(:interface_name) { 'aluminium' } subject { Refresh.by_name(interface_name) } context 'when the interface or buffer is not found' do let(:interface_name) { '' } it { proc { Refresh.by_name('') }.must_raise(ModelNotFound) } end context 'when the interface or buffer is found' do end end end # Refresh end # Vedeu
Version data entries
7 entries across 7 versions & 1 rubygems