From cf8cfe363b008464c05a26d22c18e3933366bca5 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Sat, 16 Dec 2017 17:52:13 +0100 Subject: [PATCH] Fix gsub+downcase usage with parameterize --- spec/support/common_actions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/common_actions.rb b/spec/support/common_actions.rb index b83385a6d..54c154cf8 100644 --- a/spec/support/common_actions.rb +++ b/spec/support/common_actions.rb @@ -337,7 +337,7 @@ module CommonActions end def comment_body(resource) - "comment-body-#{resource.class.name.gsub("::", "_").downcase.to_sym}_#{resource.id}" + "comment-body-#{resource.class.name.parameterize('_').to_sym}_#{resource.id}" end def path_for(resource)