From 89c74ba829f7670297e41253e759e9bc9f0c16cb Mon Sep 17 00:00:00 2001 From: Mantas Masalskis Date: Mon, 16 Sep 2019 12:34:26 +0200 Subject: [PATCH] Maintenance: Prefer selector from used variable over hardcoded string. --- spec/system/ticket/update_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/ticket/update_spec.rb b/spec/system/ticket/update_spec.rb index c3ab7543c..7b93b1020 100644 --- a/spec/system/ticket/update_spec.rb +++ b/spec/system/ticket/update_spec.rb @@ -41,7 +41,7 @@ RSpec.describe 'Ticket Update', type: :system do within(:active_content) do # update should work now - find('.edit [name=internal_name1]').select('name 2') + find(".edit [name=#{attribute.name}]").select('name 2') click('.js-attributeBar .js-submit') expect(page).to have_no_css('.js-submitDropdown .js-submit[disabled]', wait: 2) end @@ -85,7 +85,7 @@ RSpec.describe 'Ticket Update', type: :system do }, }) - # refresh browser to get macro accessable + # refresh browser to get macro accessible refresh # create a new ticket and attempt to update its state without the required select attribute