Lines Matching refs:repository
6 let!(:repository_pub_r) { create :repository, user: user,
8 let!(:repository_pub_rw) { create :repository, user: user,
10 let!(:repository_priv_rw) { create :repository, user: user,
14 it "should fetch the public#{access_modifier} repository" do
19 it "should not fetch the private#{access_modifier} repository" do
26 context 'private repository' do
28 let(:repository) { ontology_version.repository }
30 repository.access = 'private_rw'
31 repository.save
36 expect(repository.access_tokens).to be_empty
41 let!(:access_token) { repository.generate_access_token }
44 expect(repository.access_tokens).not_to be_empty
48 expect(repository.access_tokens.first).to eq(access_token)
52 expect(repository.access_tokens.first.persisted?).to be_truthy