Sha256: 98c224acf037b872c7e3b9a4c75149e5ce876683645324f625f35d235ad2da4a

Contents?: true

Size: 808 Bytes

Versions: 7

Compression:

Stored size: 808 Bytes

Contents

require 'test_helper'

module Vedeu

  describe RefreshGroup do

    let(:described) { Vedeu::RefreshGroup }
    let(:instance)  { described.new(_name) }
    let(:_name)     { 'Vedeu::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::MissingRequired) }
      end

      context 'when the name is present' do
        # @todo
        # it { skip }
      end
    end

    describe '#by_name' do
      it { instance.must_respond_to(:by_name) }
    end

  end # RefreshGroup

end # Vedeu

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vedeu-0.4.61 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.4.60 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.4.59 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.4.58 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.4.57 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.4.56 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.4.55 test/lib/vedeu/output/refresh_group_test.rb