"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/functional/users_controller_test.rb" between
redmine-4.1.0.tar.gz and redmine-4.1.1.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

users_controller_test.rb  (redmine-4.1.0):users_controller_test.rb  (redmine-4.1.1)
skipping to change at line 446 skipping to change at line 446
assert_response :success assert_response :success
assert_select 'a', :text => 'Activate' assert_select 'a', :text => 'Activate'
end end
def test_edit_should_be_denied_for_anonymous def test_edit_should_be_denied_for_anonymous
assert User.find(6).anonymous? assert User.find(6).anonymous?
get :edit, :params => {:id => 6} get :edit, :params => {:id => 6}
assert_response 404 assert_response 404
end end
def test_edit_user_with_full_text_formatting_custom_field_should_not_fail
field = UserCustomField.find(4)
field.update_attribute :text_formatting, 'full'
get :edit, :params => {:id => 2}
assert_response :success
end
def test_update def test_update
ActionMailer::Base.deliveries.clear ActionMailer::Base.deliveries.clear
put :update, :params => { put :update, :params => {
:id => 2, :id => 2,
:user => {:firstname => 'Changed', :mail_notification => 'only_assigned'}, :user => {:firstname => 'Changed', :mail_notification => 'only_assigned'},
:pref => {:hide_mail => '1', :comments_sorting => 'desc'} :pref => {:hide_mail => '1', :comments_sorting => 'desc'}
} }
user = User.find(2) user = User.find(2)
assert_equal 'Changed', user.firstname assert_equal 'Changed', user.firstname
assert_equal 'only_assigned', user.mail_notification assert_equal 'only_assigned', user.mail_notification
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)