Lines Matching refs:repository
4 context 'public repository' do
5 let(:repository) { create :repository }
8 let(:link_path) { repository.symlink_path(category) }
12 expect(link_target).to eq(repository.local_path.to_s)
15 context 'repository destroy' do
16 before { repository.destroy }
19 expect(repository.symlink_path(category).exist?).to be(false)
29 repository.access = 'private_rw'
30 repository.save!
34 expect(repository.symlink_path(:git_daemon).exist?).to be(false)
38 expect(repository.symlink_path(:git_ssh).exist?).to be(true)
43 context 'private repository' do
44 let(:repository) { create :repository, access: 'private_rw' }
48 let(:link_path) { repository.symlink_path(category) }
52 expect(repository.symlink_path(category).exist?).to be(false)
57 repository.access = 'public_r'
58 repository.save!
62 expect(repository.symlink_path(category).exist?).to be(true)
66 context 'repository destroy' do
67 before { repository.destroy }
70 expect(repository.symlink_path(category).exist?).to be(false)
77 let(:link_path) { repository.symlink_path(category) }
81 expect(link_target).to eq(repository.local_path.to_s)
84 context 'repository destroy' do
85 before { repository.destroy }
88 expect(repository.symlink_path(category).exist?).to be(false)