From 086478c5a6fca09c6a7fd8b7765b521f542cf0b9 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 28 Sep 2012 02:02:30 +0000 Subject: set user preference diff type nil at functional tests git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10501 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/repositories_git_controller_test.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/functional/repositories_git_controller_test.rb') diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index 873b3e284..dc82f7c73 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -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' -- cgit v1.2.3