1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
This commit is contained in:
David Rodríguez 2018-04-12 08:49:19 -03:00
parent 67f9842b91
commit e07fca587f

View file

@ -496,11 +496,11 @@ RSpec.shared_examples Capybara::RSpecMatchers do |session, _mode|
expect(have_link('Just a link').description).to eq('have visible link "Just a link"')
end
it 'passes if there is such a button' do
it 'passes if there is such a link' do
expect(html).to have_link('Just a link')
end
it 'fails if there is no such button' do
it 'fails if there is no such link' do
expect do
expect(html).to have_link('No such Link')
end.to raise_error(/expected to find link "No such Link"/)