From c05dc4f8a4b06b191368bd202d23d03a271df2a4 Mon Sep 17 00:00:00 2001 From: Janell-Huyck Date: Tue, 23 Jan 2024 12:51:42 -0500 Subject: [PATCH] rubocop --- .ruby-version | 2 +- spec/features/add_delete_edit_author_spec.rb | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.ruby-version b/.ruby-version index 15a27998..be94e6f5 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.0 +3.2.2 diff --git a/spec/features/add_delete_edit_author_spec.rb b/spec/features/add_delete_edit_author_spec.rb index f1557eed..a751c8c1 100644 --- a/spec/features/add_delete_edit_author_spec.rb +++ b/spec/features/add_delete_edit_author_spec.rb @@ -22,7 +22,7 @@ def remove_author_at_index(index) my_button = find('button', text: 'Remove Author') # Assign a unique ID to the element - unique_id = "unique-button-id" + unique_id = 'unique-button-id' page.execute_script("arguments[0].id = '#{unique_id}'", my_button) # Execute the script to change the button's background color using the unique ID @@ -32,9 +32,6 @@ def remove_author_at_index(index) end end - - - def check_field_values_by_index(index, first_name, last_name) expect(first_name_fields[index].value).to eq(first_name) expect(last_name_fields[index].value).to eq(last_name)