"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/functional/enumerations_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.

enumerations_controller_test.rb  (redmine-4.1.0):enumerations_controller_test.rb  (redmine-4.1.1)
skipping to change at line 87 skipping to change at line 87
:type => 'TimeEntryActivity', :type => 'TimeEntryActivity',
:name => 'Sample', :name => 'Sample',
:custom_field_values => {custom_field.id.to_s => "sample"} :custom_field_values => {custom_field.id.to_s => "sample"}
} }
} }
end end
assert_redirected_to '/enumerations' assert_redirected_to '/enumerations'
assert_equal "sample", Enumeration.find_by(:name => 'Sample').custom_field_v alues.last.value assert_equal "sample", Enumeration.find_by(:name => 'Sample').custom_field_v alues.last.value
end end
def test_create_with_multiple_select_list_custom_fields
custom_field = IssuePriorityCustomField.generate!(:field_format => 'list', :
multiple => true, :possible_values => ['1', '2', '3', '4'])
assert_difference 'IssuePriority.count' do
post :create, :params => {
:enumeration => {
:type => 'IssuePriority',
:name => 'Sample',
:custom_field_values => {custom_field.id.to_s => ['1', '2']}
}
}
end
assert_redirected_to '/enumerations'
assert_equal ['1', '2'].sort, Enumeration.find_by(:name => 'Sample').custom_
field_values.last.value.sort
end
def test_create_with_failure def test_create_with_failure
assert_no_difference 'IssuePriority.count' do assert_no_difference 'IssuePriority.count' do
post :create, :params => { post :create, :params => {
:enumeration => { :enumeration => {
:type => 'IssuePriority', :type => 'IssuePriority',
:name => '' :name => ''
} }
} }
end end
assert_response :success assert_response :success
 End of changes. 1 change blocks. 
0 lines changed or deleted 17 lines changed or added

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