Actualizar plugin Additionals a 3.0.0
This commit is contained in:
parent
3d976f1b3b
commit
a26f5567af
399 changed files with 70374 additions and 4093 deletions
|
@ -0,0 +1,36 @@
|
|||
require File.expand_path '../../test_helper', __FILE__
|
||||
|
||||
class DashboardAsyncBlocksControllerTest < Additionals::ControllerTest
|
||||
fixtures :projects,
|
||||
:users,
|
||||
:roles,
|
||||
:members,
|
||||
:member_roles,
|
||||
:issues,
|
||||
:issue_statuses,
|
||||
:versions,
|
||||
:trackers,
|
||||
:projects_trackers,
|
||||
:issue_categories,
|
||||
:enabled_modules,
|
||||
:dashboards, :dashboard_roles,
|
||||
:queries
|
||||
|
||||
include Redmine::I18n
|
||||
|
||||
def setup
|
||||
prepare_tests
|
||||
Setting.default_language = 'en'
|
||||
|
||||
@project = projects :projects_001
|
||||
@welcome_dashboard = dashboards :system_default_welcome
|
||||
@project_dashboard = dashboards :system_default_project
|
||||
end
|
||||
|
||||
def test_query_blocks
|
||||
assert_dashboard_query_blocks [
|
||||
{ dashboard_id: @welcome_dashboard.id, block: 'issuequery', entities_class: 'issues' },
|
||||
{ dashboard_id: @project_dashboard.id, block: 'issuequery', project: @project, entities_class: 'issues' }
|
||||
]
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue