@@ -378,7 +378,11 module Redmine | |||
|
378 | 378 | private |
|
379 | 379 | def buildRevision(rev) |
|
380 | 380 | if rev== 0 |
|
381 |
|
|
|
381 | if @branchid.nil? | |
|
382 | @base+".0" | |
|
383 | else | |
|
384 | @base | |
|
385 | end | |
|
382 | 386 | elsif @branchid.nil? |
|
383 | 387 | @base+"."+rev.to_s |
|
384 | 388 | else |
@@ -154,6 +154,24 class RepositoriesCvsControllerTest < ActionController::TestCase | |||
|
154 | 154 | assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' }, |
|
155 | 155 | :content => /watched.remove_all_watcher/ |
|
156 | 156 | end |
|
157 | ||
|
158 | def test_diff_new_files | |
|
159 | @repository.fetch_changesets | |
|
160 | @repository.reload | |
|
161 | get :diff, :id => PRJ_ID, :rev => 1, :type => 'inline' | |
|
162 | assert_response :success | |
|
163 | assert_template 'diff' | |
|
164 | assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' }, | |
|
165 | :content => /watched.remove_watcher/ | |
|
166 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, | |
|
167 | :content => /test\/README/ | |
|
168 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, | |
|
169 | :content => /test\/images\/delete.png / | |
|
170 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, | |
|
171 | :content => /test\/images\/edit.png/ | |
|
172 | assert_tag :tag => 'th', :attributes => { :class => 'filename' }, | |
|
173 | :content => /test\/sources\/watchers_controller.rb/ | |
|
174 | end | |
|
157 | 175 | |
|
158 | 176 | def test_annotate |
|
159 | 177 | @repository.fetch_changesets |
General Comments 0
You need to be logged in to leave comments.
Login now