diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-01 06:10:13 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-01 06:10:13 +0000 |
commit | 6bcdd2a097b24f7f43480908b522fedb9f232d51 (patch) | |
tree | a12b57cd666e899fcbeb869db188c7a4b0f7fc71 /test/functional/repositories_darcs_controller_test.rb | |
parent | b03935fadeff7ecf7f5b6b08b42b13f96c59ff6a (diff) | |
download | redmine-6bcdd2a097b24f7f43480908b522fedb9f232d51.tar.gz redmine-6bcdd2a097b24f7f43480908b522fedb9f232d51.zip |
scm: darcs: run both of "inline" and "side by side" diff in functional test_diff test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5976 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_darcs_controller_test.rb')
-rw-r--r-- | test/functional/repositories_darcs_controller_test.rb | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/test/functional/repositories_darcs_controller_test.rb b/test/functional/repositories_darcs_controller_test.rb index 6b4c004d2..5ad37b014 100644 --- a/test/functional/repositories_darcs_controller_test.rb +++ b/test/functional/repositories_darcs_controller_test.rb @@ -91,15 +91,17 @@ class RepositoriesDarcsControllerTest < ActionController::TestCase @repository.fetch_changesets @repository.reload # Full diff of changeset 5 - get :diff, :id => PRJ_ID, :rev => 5 - assert_response :success - assert_template 'diff' - # Line 22 removed - assert_tag :tag => 'th', - :content => /22/, - :sibling => { :tag => 'td', - :attributes => { :class => /diff_out/ }, - :content => /def remove/ } + ['inline', 'sbs'].each do |dt| + get :diff, :id => PRJ_ID, :rev => 5, :type => dt + assert_response :success + assert_template 'diff' + # Line 22 removed + assert_tag :tag => 'th', + :content => '22', + :sibling => { :tag => 'td', + :attributes => { :class => /diff_out/ }, + :content => /def remove/ } + end end else puts "Darcs test repository NOT FOUND. Skipping functional tests !!!" |