|
58 | 58 |
|
59 | 59 | it { should be_kind_of Array } |
60 | 60 | it { should have(SeedRepo::Repo::TAGS.size).elements } |
61 | | - its(:last) { should == "v1.1.0" } |
| 61 | + its(:last) { should == "v1.2.0" } |
62 | 62 | it { should include("v1.0.0") } |
63 | 63 | it { should_not include("v5.0.0") } |
64 | 64 | end |
65 | 65 |
|
66 | 66 | shared_examples 'archive check' do |extenstion| |
67 | | - it { archive.should match(/tmp\/gitlab-git-test.git\/gitlab-git-test-5937ac0a/) } |
| 67 | + it { archive.should match(/tmp\/gitlab-git-test.git\/gitlab-git-test-eb49186cfa5c43380/) } |
68 | 68 | it { archive.should end_with extenstion } |
69 | 69 | it { File.exists?(archive).should be_true } |
70 | 70 | it { File.size?(archive).should_not be_nil } |
|
138 | 138 |
|
139 | 139 | it { should be_kind_of Array } |
140 | 140 | its(:first) { should == 'feature' } |
141 | | - its(:last) { should == 'v1.1.0' } |
| 141 | + its(:last) { should == 'v1.2.0' } |
142 | 142 | end |
143 | 143 |
|
144 | 144 | describe :search_files do |
|
181 | 181 | end |
182 | 182 |
|
183 | 183 | describe :commit_count do |
184 | | - it { repository.commit_count("master").should == 13 } |
| 184 | + it { repository.commit_count("master").should == 14 } |
185 | 185 | it { repository.commit_count("feature").should == 9 } |
186 | 186 | end |
187 | 187 |
|
188 | 188 | describe :archive_repo do |
189 | | - it { repository.archive_repo('master', '/tmp').should == '/tmp/gitlab-git-test.git/gitlab-git-test-5937ac0a7beb003549fc5fd26fc247adbce4a52e.tar.gz' } |
| 189 | + it { repository.archive_repo('master', '/tmp').should == '/tmp/gitlab-git-test.git/gitlab-git-test-eb49186cfa5c4338011f5f590fac11bd66c5c631.tar.gz' } |
190 | 190 | end |
191 | 191 |
|
192 | 192 | describe "#reset" do |
|
212 | 212 | end |
213 | 213 |
|
214 | 214 | @normal_repo = Gitlab::Git::Repository.new(TEST_NORMAL_REPO_PATH) |
215 | | - @normal_repo.reset("HEAD~3", :hard) |
| 215 | + @normal_repo.reset("HEAD~4", :hard) |
216 | 216 | end |
217 | 217 |
|
218 | 218 | it "should replace the working directory with the content of the index" do |
|
0 commit comments