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