Sha256: 4a4ba791f81018d343326d9118132e42b0641b85e4e064af5d719bb8d348b782

Contents?: true

Size: 622 Bytes

Versions: 15

Compression:

Stored size: 622 Bytes

Contents

require 'test_helper'

module Vedeu

  describe Groups do

    let(:described) { Vedeu::Groups }

    describe '#by_name' do
      let(:_name) { 'carbon' }

      subject { described.groups.by_name(_name) }

      context 'when the group exists' do
        before do
          Vedeu.group 'carbon' do
          end
        end
        after { Vedeu.groups.reset }

        it { subject.must_be_instance_of(Vedeu::Group) }
      end

      context 'when the group does not exist' do
        let(:_name) { 'nitrogen' }

        it { subject.must_be_instance_of(Vedeu::Group) }
      end
    end

  end # Groups

end # Vedeu

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
vedeu-0.4.40 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.39 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.38 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.37 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.36 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.35 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.34 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.33 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.32 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.31 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.30 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.29 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.28 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.27 test/lib/vedeu/repositories/repositories/groups_test.rb
vedeu-0.4.26 test/lib/vedeu/repositories/repositories/groups_test.rb