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:
parent
fb6348575e
commit
c5bb9265dc
2 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ module Capybara
|
|||
end
|
||||
|
||||
def description
|
||||
"text #{format(text)}"
|
||||
"have text #{format(text)}"
|
||||
end
|
||||
|
||||
def format(content)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue