mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-06 09:03:25 +00:00
Fixed test failures (#19163).
git-svn-id: http://svn.redmine.org/redmine/trunk@14153 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f5668d0650
commit
ab4916b01a
3
test/fixtures/custom_fields_trackers.yml
vendored
3
test/fixtures/custom_fields_trackers.yml
vendored
@ -26,3 +26,6 @@ custom_fields_trackers_008:
|
||||
custom_fields_trackers_009:
|
||||
custom_field_id: 8
|
||||
tracker_id: 3
|
||||
custom_fields_trackers_010:
|
||||
custom_field_id: 9
|
||||
tracker_id: 1
|
||||
|
||||
@ -3389,7 +3389,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
|
||||
def test_get_bulk_edit
|
||||
@request.session[:user_id] = 2
|
||||
get :bulk_edit, :ids => [1, 2]
|
||||
get :bulk_edit, :ids => [1, 3]
|
||||
assert_response :success
|
||||
assert_template 'bulk_edit'
|
||||
|
||||
@ -3440,7 +3440,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
def test_get_bulk_edit_with_user_custom_field
|
||||
field = IssueCustomField.create!(:name => 'Tester', :field_format => 'user', :is_for_all => true)
|
||||
field = IssueCustomField.create!(:name => 'Tester', :field_format => 'user', :is_for_all => true, :tracker_ids => [1,2,3])
|
||||
|
||||
@request.session[:user_id] = 2
|
||||
get :bulk_edit, :ids => [1, 2]
|
||||
@ -3453,7 +3453,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
def test_get_bulk_edit_with_version_custom_field
|
||||
field = IssueCustomField.create!(:name => 'Affected version', :field_format => 'version', :is_for_all => true)
|
||||
field = IssueCustomField.create!(:name => 'Affected version', :field_format => 'version', :is_for_all => true, :tracker_ids => [1,2,3])
|
||||
|
||||
@request.session[:user_id] = 2
|
||||
get :bulk_edit, :ids => [1, 2]
|
||||
@ -3470,7 +3470,7 @@ class IssuesControllerTest < ActionController::TestCase
|
||||
field.update_attribute :multiple, true
|
||||
|
||||
@request.session[:user_id] = 2
|
||||
get :bulk_edit, :ids => [1, 2]
|
||||
get :bulk_edit, :ids => [1, 3]
|
||||
assert_response :success
|
||||
assert_template 'bulk_edit'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user