Sha256: 01d5b0c5542fd54ffc83f7d663030978640f62713ae112f669779e1a9fc84100
Contents?: true
Size: 960 Bytes
Versions: 10
Compression:
Stored size: 960 Bytes
Contents
require 'test_helper' module Vedeu module Groups describe Refresh do let(:described) { Vedeu::Groups::Refresh } let(:instance) { described.new(_name) } let(:_name) { 'Vedeu::Groups::Refresh' } 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::Groups::Refresh.expects(:by_name).with(_name) subject } end end describe '#by_name' do it { instance.must_respond_to(:by_name) } end end # Refresh end # Groups end # Vedeu
Version data entries
10 entries across 10 versions & 1 rubygems