Skip to content

Commit

Permalink
Replace Capybara.within -> within
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirurg103 committed Sep 19, 2018
1 parent d17d95d commit 41af94b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/select2_v2_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion spec/select2_v3_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion spec/select2_v4_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 41af94b

Please sign in to comment.