Patch #33567

Fix typo in watchers_controller.rb

Added by Pavel Rosický 29 days ago. Updated 21 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Code cleanup/refactoring
Target version:4.2.0

Description

find_objets_from_params -> find_objects_from_params

watchers_controller.rb.patch Magnifier (1.06 KB) Pavel Rosický, 2020-06-08 13:40

Associated revisions

Revision 19823
Added by Go MAEDA 21 days ago

Fix typo in app/controllers/watchers_controller.rb (#33567).

Patch by Pavel Rosický.

Revision 19824
Added by Go MAEDA 21 days ago

Fix typo in test/helpers/watchers_helper_test.rb (#33567).

History

#1 Updated by Go MAEDA 29 days ago

  • Target version set to 4.2.0

I found the same typos in another file.

diff --git a/test/helpers/watchers_helper_test.rb b/test/helpers/watchers_helper_test.rb
index ccbc80875..057b1bdd8 100644
--- a/test/helpers/watchers_helper_test.rb
+++ b/test/helpers/watchers_helper_test.rb
@@ -34,7 +34,7 @@ class WatchersHelperTest < Redmine::HelperTest
     assert_equal expected, watcher_link(Issue.find(1), User.find(1))
   end

-  test '#watcher_link with a single objet array' do
+  test '#watcher_link with a single object array' do
     expected = link_to(
       "Watch",
       "/watchers/watch?object_id=1&object_type=issue",
@@ -43,7 +43,7 @@ class WatchersHelperTest < Redmine::HelperTest
     assert_equal expected, watcher_link([Issue.find(1)], User.find(1))
   end

-  test '#watcher_link with a multiple objets array' do
+  test '#watcher_link with a multiple objects array' do
     expected = link_to(
       "Watch",
       "/watchers/watch?object_id%5B%5D=1&object_id%5B%5D=3&object_type=issue",

#2 Updated by Go MAEDA 21 days ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

#3 Updated by Go MAEDA 21 days ago

Committed the patch. Thank you.

#4 Updated by Go MAEDA 21 days ago

  • Subject changed from fix a typo in watchers_controller.rb to Fix typo in watchers_controller.rb

Also available in: Atom PDF