git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10501
e93f8b46-1217-0410-a6f0-
8f06a7374b81
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'
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'