mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 15:56:03 +01:00
code cleanup: rubocop: fix Layout/BlockAlignment in test/unit/lib/redmine/menu_manager/mapper_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18677 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -57,7 +57,6 @@ Layout/BlockAlignment:
|
|||||||
- 'app/models/principal.rb'
|
- 'app/models/principal.rb'
|
||||||
- 'app/models/project.rb'
|
- 'app/models/project.rb'
|
||||||
- 'app/models/time_entry.rb'
|
- 'app/models/time_entry.rb'
|
||||||
- 'test/unit/lib/redmine/menu_manager/mapper_test.rb'
|
|
||||||
- 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
|
- 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
|
|||||||
@@ -181,13 +181,12 @@ class Redmine::MenuManager::MapperTest < ActiveSupport::TestCase
|
|||||||
menu.push :administration, { :controller => 'projects', :action => 'show'}, {:last => true}
|
menu.push :administration, { :controller => 'projects', :action => 'show'}, {:last => true}
|
||||||
menu.push :help, Redmine::Info.help_url, :last => true
|
menu.push :help, Redmine::Info.help_url, :last => true
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_nothing_raised do
|
assert_nothing_raised do
|
||||||
Redmine::MenuManager.map :test_menu do |menu|
|
Redmine::MenuManager.map :test_menu do |menu|
|
||||||
menu.delete(:administration)
|
menu.delete(:administration)
|
||||||
menu.delete(:help)
|
menu.delete(:help)
|
||||||
menu.push :test_overview, { :controller => 'projects', :action => 'show'}, {}
|
menu.push :test_overview, { :controller => 'projects', :action => 'show'}, {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user