Sha256: 206a52a055fcb1c5f2e7898ec3dea8bec9f094a494bb3005d1f23844bc77d71e

Contents?: true

Size: 824 Bytes

Versions: 15

Compression:

Stored size: 824 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 Add more tests.
        # it { skip }
      end
    end

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

  end # RefreshGroup

end # Vedeu

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
vedeu-0.5.10 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.5.9 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.5.8 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.5.7 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.5.6 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.5.5 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.5.4 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.5.3 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.5.2 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.5.1 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.5.0 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.4.65 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.4.64 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.4.63 test/lib/vedeu/output/refresh_group_test.rb
vedeu-0.4.62 test/lib/vedeu/output/refresh_group_test.rb