test/lib/vedeu/repositories/repository_test.rb in vedeu-0.4.46 vs test/lib/vedeu/repositories/repository_test.rb in vedeu-0.4.47
- old
+ new
@@ -196,46 +196,9 @@
"<Vedeu::Interfaces: [\"hydrogen\", \"helium\"]>"
) }
end
end
- describe '#registered' do
- it 'returns an Array' do
- RepositoriesTestClass.new.registered.must_be_instance_of(Array)
- end
-
- context 'when the storage is a Hash' do
- it 'returns a collection of the names of all the registered entities' do
- repo = RepositoriesTestClass.new
- repo.add('rutherfordium' => { name: 'rutherfordium' })
-
- repo.registered.must_equal(['rutherfordium'])
- end
- end
-
- context 'when the storage is an Array' do
- it 'returns the registered entities' do
- repo = RepositoriesTestClass.new([])
- repo.add('rutherfordium')
-
- repo.registered.must_equal(['rutherfordium'])
- end
- end
-
- context 'when the storage is a Set' do
- it 'returns the registered entities' do
- repo = RepositoriesTestClass.new(Set.new)
- repo.add('rutherfordium')
-
- repo.registered.must_equal(['rutherfordium'])
- end
- end
-
- it 'returns an empty collection when the storage is empty' do
- RepositoriesTestClass.new.registered.must_equal([])
- end
- end
-
describe '#registered?' do
it 'returns false with no name' do
RepositoriesTestClass.new.registered?('').must_equal(false)
end