From 41af94b743a20efaad009c79e575d7e42badb034 Mon Sep 17 00:00:00 2001 From: Dzmitry Date: Wed, 19 Sep 2018 18:16:53 +0300 Subject: [PATCH] Replace `Capybara.within` -> `within` --- spec/select2_v2_spec.rb | 2 +- spec/select2_v3_spec.rb | 2 +- spec/select2_v4_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/select2_v2_spec.rb b/spec/select2_v2_spec.rb index 04dd313..c673d2f 100644 --- a/spec/select2_v2_spec.rb +++ b/spec/select2_v2_spec.rb @@ -38,7 +38,7 @@ context 'when searching for an option within a block' do it 'should select an option from search results' do - Capybara.within '#single' do + within '#single' do select2 'Wii', css: '.select2-container', search: true end expect(page).to have_css '.select2-container span', text: 'Wii' diff --git a/spec/select2_v3_spec.rb b/spec/select2_v3_spec.rb index 07f25c9..0fef0c9 100644 --- a/spec/select2_v3_spec.rb +++ b/spec/select2_v3_spec.rb @@ -36,7 +36,7 @@ context 'when searching for an option within a block' do it 'should select an option from search results' do - Capybara.within '#single' do + within '#single' do select2 'Wii', css: '.select2-container', search: true end expect(page).to have_css '.select2-container span', text: 'Wii' diff --git a/spec/select2_v4_spec.rb b/spec/select2_v4_spec.rb index f9ccb9a..2ab3591 100644 --- a/spec/select2_v4_spec.rb +++ b/spec/select2_v4_spec.rb @@ -36,7 +36,7 @@ context 'when searching for an option within a block' do it 'should select an option from search results' do - Capybara.within '#single' do + within '#single' do select2 'Wii', css: '.select2-container', search: true end expect(page).to have_css '.select2-container span', text: 'Wii'