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