Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use ruby snake_case instead of camelCase

Henriette Dinger0286f0979fc8
diff --git a/spec/features/work_packages/spent_time_display_spec.rb b/spec/features/work_packages/spent_time_display_spec.rb
index 12f27ae5f01..ae676ffb778 100644
--- a/spec/features/work_packages/spent_time_display_spec.rb
+++ b/spec/features/work_packages/spent_time_display_spec.rb
@@ -67,12 +67,12 @@ describe 'Logging time within the work package view', type: :feature, js: true d
login_as(admin)
wp_page.visit!
loading_indicator_saveguard
- spent_time_field.timeLogIconVisible true
+ spent_time_field.time_log_icon_visible true
end
it 'shows a logging button within the display field and can log time via a modal' do
# click on button opens modal
- spent_time_field.openTimeLogModal
+ spent_time_field.open_time_log_modal
log_time_via_modal
end
@@ -94,7 +94,7 @@ describe 'Logging time within the work package view', type: :feature, js: true d
end
it 'shows no logging button within the display field' do
- spent_time_field.timeLogIconVisible false
+ spent_time_field.time_log_icon_visible false
spent_time_field.expect_display_value '-'
end
end
diff --git a/spec/support/edit_fields/spent_time_edit_field.rb b/spec/support/edit_fields/spent_time_edit_field.rb
index 7d4787a552e..e9328753444 100644
--- a/spec/support/edit_fields/spent_time_edit_field.rb
+++ b/spec/support/edit_fields/spent_time_edit_field.rb
@@ -1,7 +1,7 @@
require_relative './edit_field'
class SpentTimeEditField < EditField
- def timeLogIconVisible(visible)
+ def time_log_icon_visible(visible)
if visible
expect(page).to have_selector("#{@selector} #{display_selector} #{icon}")
else
@@ -9,7 +9,7 @@ class SpentTimeEditField < EditField
end
end
- def openTimeLogModal
+ def open_time_log_modal
page.find("#{@selector} #{display_selector} #{icon}").click
end