1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Fix have_text description

This commit is contained in:
Juan Pablo Rinaldi 2020-05-03 20:19:27 -03:00
parent fb6348575e
commit c5bb9265dc
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ module Capybara
end
def description
"text #{format(text)}"
"have text #{format(text)}"
end
def format(content)

View file

@ -265,7 +265,7 @@ RSpec.shared_examples Capybara::RSpecMatchers do |session, _mode|
describe 'have_content matcher' do
it 'gives proper description' do
expect(have_content('Text').description).to eq('text "Text"')
expect(have_content('Text').description).to eq('have text "Text"')
end
context 'on a string' do
@ -369,7 +369,7 @@ RSpec.shared_examples Capybara::RSpecMatchers do |session, _mode|
describe 'have_text matcher' do
it 'gives proper description' do
expect(have_text('Text').description).to eq('text "Text"')
expect(have_text('Text').description).to eq('have text "Text"')
end
context 'on a string' do