From d72ec5890a13df2e6aeaef5824f99cd175b88094 Mon Sep 17 00:00:00 2001 From: bestest-mensch <16200338+bestest-mensch@users.noreply.github.com> Date: Sun, 6 Oct 2019 16:53:34 -0500 Subject: [PATCH] address code climate issues --- spec/features/conversations/index_spec.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/spec/features/conversations/index_spec.rb b/spec/features/conversations/index_spec.rb index 1746a314c..969fc447c 100644 --- a/spec/features/conversations/index_spec.rb +++ b/spec/features/conversations/index_spec.rb @@ -49,10 +49,7 @@ describe "Conversations", :js do click_link 'Your Stuff' click_link 'Inbox' - all('input[type=checkbox]').each do |checkbox| - checkbox.click - end - + all('input[type=checkbox]').each(&:click) click_button 'Delete Selected' expect(page).not_to have_content 'this is a message' @@ -70,10 +67,7 @@ describe "Conversations", :js do expect(page).to have_selector('.sent') find('.sent').click - all('input[type=checkbox]').each do |checkbox| - checkbox.click - end - + all('input[type=checkbox]').each(&:click) click_button 'Delete Selected' expect(page).to have_selector('.sent')