@@ -91,16 +91,18 class RepositoriesDarcsControllerTest < ActionController::TestCase | |||
|
91 | 91 | @repository.fetch_changesets |
|
92 | 92 | @repository.reload |
|
93 | 93 | # Full diff of changeset 5 |
|
94 | get :diff, :id => PRJ_ID, :rev => 5 | |
|
94 | ['inline', 'sbs'].each do |dt| | |
|
95 | get :diff, :id => PRJ_ID, :rev => 5, :type => dt | |
|
95 | 96 | assert_response :success |
|
96 | 97 | assert_template 'diff' |
|
97 | 98 | # Line 22 removed |
|
98 | 99 | assert_tag :tag => 'th', |
|
99 |
:content => |
|
|
100 | :content => '22', | |
|
100 | 101 | :sibling => { :tag => 'td', |
|
101 | 102 | :attributes => { :class => /diff_out/ }, |
|
102 | 103 | :content => /def remove/ } |
|
103 | 104 | end |
|
105 | end | |
|
104 | 106 | else |
|
105 | 107 | puts "Darcs test repository NOT FOUND. Skipping functional tests !!!" |
|
106 | 108 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now