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

Remove unnecessary test

This commit is contained in:
Thomas Walpole 2020-07-03 17:43:02 -07:00
parent 5b68043516
commit 38b7878112

View file

@ -133,17 +133,6 @@ Capybara::SpecHelper.spec '#has_text?' do
expect(@session).to have_text(:visible, with_to_hash, {})
end
end
it 'should fail if passed without empty options' do
with_to_hash = Class.new do
def to_s; '42' end
def to_hash; { blah: 'Other hash' } end
end.new
@session.visit('/with_html')
expect do
expect(@session).to have_text(:visible, with_to_hash)
end.to raise_error(ArgumentError)
end
end
context 'with exact: true option' do