Fix tests
This commit is contained in:
parent
a2c4ec7f62
commit
10ca084e2c
@ -25,7 +25,8 @@ class DmsfControllerTest < RedmineDmsf::Test::TestCase
|
|||||||
include Redmine::I18n
|
include Redmine::I18n
|
||||||
include Rails.application.routes.url_helpers
|
include Rails.application.routes.url_helpers
|
||||||
|
|
||||||
fixtures :custom_fields, :custom_values, :dmsf_links, :dmsf_folder_permissions, :dmsf_locks
|
fixtures :custom_fields, :custom_values, :dmsf_links, :dmsf_folder_permissions, :dmsf_locks,
|
||||||
|
:dmsf_folders, :dmsf_files, :dmsf_file_revisions
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
|
|||||||
@ -23,7 +23,7 @@ require File.expand_path('../../test_helper', __FILE__)
|
|||||||
|
|
||||||
class DmsfFilesControllerTest < RedmineDmsf::Test::TestCase
|
class DmsfFilesControllerTest < RedmineDmsf::Test::TestCase
|
||||||
|
|
||||||
fixtures :custom_fields, :custom_values, :dmsf_file_revisions
|
fixtures :dmsf_folders, :dmsf_files, :dmsf_file_revisions, :dmsf_locks
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
|
|||||||
@ -24,7 +24,7 @@ require File.expand_path('../../test_helper', __FILE__)
|
|||||||
class DmsfFilesCopyControllerTest < RedmineDmsf::Test::TestCase
|
class DmsfFilesCopyControllerTest < RedmineDmsf::Test::TestCase
|
||||||
include Redmine::I18n
|
include Redmine::I18n
|
||||||
|
|
||||||
fixtures :custom_fields, :custom_values, :dmsf_locks
|
fixtures :dmsf_folders, :dmsf_files, :dmsf_file_revisions, :dmsf_locks
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
|
|||||||
@ -22,7 +22,8 @@
|
|||||||
require File.expand_path('../../test_helper', __FILE__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
class DmsfFolderPermissionsControllerTest < RedmineDmsf::Test::TestCase
|
class DmsfFolderPermissionsControllerTest < RedmineDmsf::Test::TestCase
|
||||||
fixtures :dmsf_folder_permissions
|
|
||||||
|
fixtures :dmsf_folder_permissions, :dmsf_folders, :dmsf_files, :dmsf_file_revisions
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
|
|||||||
@ -24,7 +24,7 @@ require File.expand_path('../../test_helper', __FILE__)
|
|||||||
class DmsfFoldersCopyControllerTest < RedmineDmsf::Test::TestCase
|
class DmsfFoldersCopyControllerTest < RedmineDmsf::Test::TestCase
|
||||||
include Redmine::I18n
|
include Redmine::I18n
|
||||||
|
|
||||||
fixtures :dmsf_locks
|
fixtures :dmsf_locks, :dmsf_folders, :dmsf_files, :dmsf_file_revisions
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
|
|||||||
@ -24,7 +24,7 @@ require File.expand_path('../../test_helper', __FILE__)
|
|||||||
class DmsfLinksControllerTest < RedmineDmsf::Test::TestCase
|
class DmsfLinksControllerTest < RedmineDmsf::Test::TestCase
|
||||||
include Redmine::I18n
|
include Redmine::I18n
|
||||||
|
|
||||||
fixtures :dmsf_links
|
fixtures :dmsf_links, :dmsf_folders, :dmsf_files, :dmsf_file_revisions
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
|
|||||||
@ -23,7 +23,7 @@ require File.expand_path('../../test_helper', __FILE__)
|
|||||||
|
|
||||||
class DmsfPublicUrlsControllerTest < RedmineDmsf::Test::TestCase
|
class DmsfPublicUrlsControllerTest < RedmineDmsf::Test::TestCase
|
||||||
|
|
||||||
fixtures :dmsf_public_urls
|
fixtures :dmsf_public_urls, :dmsf_folders, :dmsf_files, :dmsf_file_revisions
|
||||||
|
|
||||||
def test_show_valid_url
|
def test_show_valid_url
|
||||||
get :show, params: { token: 'd8d33e21914a433b280fdc94450ee212' }
|
get :show, params: { token: 'd8d33e21914a433b280fdc94450ee212' }
|
||||||
|
|||||||
@ -24,6 +24,8 @@ require File.expand_path('../../test_helper', __FILE__)
|
|||||||
class DmsfStateControllerTest < RedmineDmsf::Test::TestCase
|
class DmsfStateControllerTest < RedmineDmsf::Test::TestCase
|
||||||
include Redmine::I18n
|
include Redmine::I18n
|
||||||
|
|
||||||
|
fixtures :dmsf_folders, :dmsf_files, :dmsf_file_revisions
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
@request.session[:user_id] = @jsmith.id
|
@request.session[:user_id] = @jsmith.id
|
||||||
|
|||||||
@ -24,7 +24,8 @@ require File.expand_path('../../test_helper', __FILE__)
|
|||||||
class DmsfWorkflowsControllerTest < RedmineDmsf::Test::TestCase
|
class DmsfWorkflowsControllerTest < RedmineDmsf::Test::TestCase
|
||||||
include Redmine::I18n
|
include Redmine::I18n
|
||||||
|
|
||||||
fixtures :dmsf_workflows, :dmsf_workflow_steps, :dmsf_workflow_step_assignments
|
fixtures :dmsf_workflows, :dmsf_workflow_steps, :dmsf_workflow_step_assignments,
|
||||||
|
:dmsf_folders, :dmsf_files, :dmsf_file_revisions, :dmsf_locks
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
|
|||||||
@ -26,7 +26,7 @@ class MyControllerTest < RedmineDmsf::Test::TestCase
|
|||||||
include Redmine::I18n
|
include Redmine::I18n
|
||||||
|
|
||||||
fixtures :user_preferences, :dmsf_workflows, :dmsf_workflow_steps, :dmsf_workflow_step_assignments,
|
fixtures :user_preferences, :dmsf_workflows, :dmsf_workflow_steps, :dmsf_workflow_step_assignments,
|
||||||
:dmsf_workflow_step_actions, :dmsf_locks
|
:dmsf_workflow_step_actions, :dmsf_folders, :dmsf_files, :dmsf_file_revisions, :dmsf_locks
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user