Commit 17d05e12 authored by jplang's avatar jplang
Browse files

Adds a test for revision diff as raw format.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 5a02de76
......@@ -325,6 +325,18 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
def test_revision_diff_raw_format
assert_equal 0, @repository.changesets.count
assert_equal NUM_REV, @repository.changesets.count
get :diff, :id => PRJ_ID, :rev => 3, :format => 'diff'
assert_response :success
assert_equal 'text/x-patch', @response.content_type
assert_equal 'Index: subversion_test/textfile.txt', @response.body.split(/\r?\n/).first
def test_directory_diff
assert_equal 0, @repository.changesets.count
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment