mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 15:26:03 +01:00
Use fixtures :all to ensure consistent test data and improve test reliability (#41961).
Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23391 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -21,18 +21,6 @@ require_relative '../test_helper'
|
||||
|
||||
class VersionsCustomFieldsVisibilityTest < Redmine::ControllerTest
|
||||
tests VersionsController
|
||||
fixtures :projects,
|
||||
:users, :email_addresses,
|
||||
:roles,
|
||||
:members,
|
||||
:member_roles,
|
||||
:issue_statuses,
|
||||
:trackers,
|
||||
:projects_trackers,
|
||||
:enabled_modules,
|
||||
:versions,
|
||||
:custom_fields, :custom_values, :custom_fields_trackers
|
||||
|
||||
def test_show_should_display_only_custom_fields_visible_to_user
|
||||
cf1 = VersionCustomField.create!(:name => 'cf1', :field_format => 'string')
|
||||
cf2 = VersionCustomField.create!(:name => 'cf2', :field_format => 'string', :visible => false, :role_ids => [1])
|
||||
|
||||
Reference in New Issue
Block a user