GitLab ist wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht erreichbar.

Commit f0137e48 authored by tmaruyama's avatar tmaruyama

set user preference diff type nil at functional tests

git-svn-id: https://svn.redmine.org/redmine/trunk@10501 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent f13cd614
......@@ -96,8 +96,13 @@ class AttachmentsControllerTest < ActionController::TestCase
end
def test_save_diff_type
@request.session[:user_id] = 1 # admin
user1 = User.find(1)
user1.pref[:diff_type] = nil
user1.preference.save
user = User.find(1)
assert_nil user.pref[:diff_type]
@request.session[:user_id] = 1 # admin
get :show, :id => 5
assert_response :success
assert_template 'diff'
......
......@@ -395,8 +395,13 @@ class RepositoriesGitControllerTest < ActionController::TestCase
end
def test_save_diff_type
@request.session[:user_id] = 1 # admin
user1 = User.find(1)
user1.pref[:diff_type] = nil
user1.preference.save
user = User.find(1)
assert_nil user.pref[:diff_type]
@request.session[:user_id] = 1 # admin
get :diff,
:id => PRJ_ID,
:rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7'
......
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