Sha256: 2eb7a0442c9fbb6fbdf6363852aafeffa683258436d308886a36b59cd9000351
Contents?: true
Size: 985 Bytes
Versions: 9
Compression:
Stored size: 985 Bytes
Contents
require 'test_helper' module Vedeu module Output describe RefreshGroup do let(:described) { Vedeu::Output::RefreshGroup } let(:instance) { described.new(_name) } let(:_name) { 'Vedeu::Output::RefreshGroup' } describe '#initialize' do it { instance.must_be_instance_of(described) } it { instance.instance_variable_get('@name').must_equal(_name) } end describe '.by_name' do subject { described.by_name(_name) } context 'when the name is not present' do let(:_name) { '' } it { proc { subject }.must_raise(Vedeu::Error::MissingRequired) } end context 'when the name is present' do it { Vedeu::Output::RefreshGroup.expects(:by_name).with(_name) subject } end end describe '#by_name' do it { instance.must_respond_to(:by_name) } end end # RefreshGroup end # Output end # Vedeu
Version data entries
9 entries across 9 versions & 1 rubygems