Lines Matching refs:repository
4 let(:path) { '/tmp/ontohub/test/lib/repository' }
5 let(:repository) { GitRepository.new(path) }
26 @commit1 = repository.commit_file(userinfo, content1, filepath.to_s, 'Message1')
27 @commit2 = repository.commit_file(userinfo, content2, filepath.to_s, 'Message2')
28 @commit3 = repository.delete_file(userinfo, filepath.to_s)
32 expect(repository.is_head?(@commit3)).to be(true)
36 expect(repository.changed_files(@commit1).size).to eq(1)
40 expect(repository.changed_files(@commit1).first.name).to eq(Pathname.new 'file.xml')
44 expect(repository.changed_files(@commit1).first.path).to eq(filepath)
48 expect(repository.changed_files(@commit1).first.added?).to be(true)
53 expect(repository.changed_files(@commit1).first.send("#{status}?")).to be(false)
58 expect(repository.changed_files(@commit1).first.mime_type).
63 expect(repository.changed_files(@commit1).first.mime_category).
68 expect(repository.changed_files(@commit1).first.editable?).to be(true)
73 expect(repository.changed_files(@commit2).size).to eq(1)
77 expect(repository.changed_files(@commit2).first.name).to eq(Pathname.new filename)
81 expect(repository.changed_files(@commit2).first.path).to eq(filepath)
85 expect(repository.changed_files(@commit2).first.modified?).to be(true)
90 expect(repository.changed_files(@commit2).first.send("#{status}?")).to be(false)
95 expect(repository.changed_files(@commit2).first.mime_type).
100 expect(repository.changed_files(@commit2).first.mime_category).
105 expect(repository.changed_files(@commit2).first.editable?).to be(true)
110 expect(repository.changed_files.size).to eq(1)
114 expect(repository.changed_files.first.name).to eq(Pathname.new filename)
118 expect(repository.changed_files.first.path).to eq(filepath)
122 expect(repository.changed_files.first.deleted?).to be(true)
127 expect(repository.changed_files.first.send("#{status}?")).to be(false)
132 expect(repository.changed_files.first.mime_type).
137 expect(repository.changed_files.first.mime_category).to eq('application')
141 expect(repository.changed_files.first.editable?).to be(true)