spec/repository_spec.rb in eternity-0.0.5 vs spec/repository_spec.rb in eternity-0.1.0

- old
+ new

@@ -68,6 +68,19 @@ repository.current_commit.must_equal commit repository.delta.must_equal 'countries' => {'UY' => {'action' => 'insert', 'data' => {'name' => 'Uruguay'}}} end + it 'In memory instances' do + Repository.all.must_be_empty + + repository_1 = Repository.new 'repository_1' + repository_1[:countries].insert 'AR', name: 'Argentina' + + repository_2 = Repository.new 'repository_2' + repository_2[:countries].insert 'UY', name: 'Uruguay' + + Repository.all.map(&:name).sort.must_equal %w(repository_1 repository_2) + end + + end \ No newline at end of file