Sha256: f437d56ed0424aa4e340a1174284e0b7539ba8cefa97027b34f5515d835aac2e

Contents?: true

Size: 951 Bytes

Versions: 8

Compression:

Stored size: 951 Bytes

Contents

require 'test_helper'

module Vedeu

  describe Repositories do

    let(:described) { Vedeu::Repositories }

    describe '.all' do
      subject { described.all }

      # @todo Add more tests.
    end

    describe '.register' do
      subject { described.register(klass) }

      context 'when the klass is nil' do
        let(:klass) {}

        it { subject.must_equal(nil) }
      end

      context 'when the klass is a repository class' do
        let(:klass) { Vedeu::Buffers::Repository }

        it { subject.wont_be_empty }
      end
    end

    describe '.registered' do
      before {
        Vedeu.stubs(:log)
        described.reset!
      }

      subject { described.registered }

      # @todo Add more tests.
      # it { skip }
    end

    describe '.reset!' do
      subject { described.reset! }

      it { described.must_respond_to(:reset) }
      it { subject.must_equal(true) }
    end

  end # Repositories

end # Vedeu

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vedeu-0.8.0 test/lib/vedeu/repositories/repositories_test.rb
vedeu-0.7.4 test/lib/vedeu/repositories/repositories_test.rb
vedeu-0.7.3 test/lib/vedeu/repositories/repositories_test.rb
vedeu-0.7.2 test/lib/vedeu/repositories/repositories_test.rb
vedeu-0.7.1 test/lib/vedeu/repositories/repositories_test.rb
vedeu-0.7.0 test/lib/vedeu/repositories/repositories_test.rb
vedeu-0.6.71 test/lib/vedeu/repositories/repositories_test.rb
vedeu-0.6.70 test/lib/vedeu/repositories/repositories_test.rb