mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Fix rubocop issues
This commit is contained in:
parent
40d7d2389a
commit
6cd5eb4167
2 changed files with 5 additions and 4 deletions
|
@ -7,7 +7,8 @@ module Capybara
|
|||
class Config
|
||||
extend Forwardable
|
||||
|
||||
OPTIONS = %i[app reuse_server threadsafe default_wait_time server default_driver javascript_driver allow_gumbo].freeze
|
||||
OPTIONS = %i[app reuse_server threadsafe default_wait_time server
|
||||
default_driver javascript_driver allow_gumbo].freeze
|
||||
|
||||
attr_accessor :app
|
||||
attr_reader :reuse_server, :threadsafe
|
||||
|
|
|
@ -111,14 +111,14 @@ RSpec.describe Capybara do
|
|||
end
|
||||
|
||||
it 'drops illegal fragments when using gumbo' do
|
||||
skip "libxml is less strict thatn Gumbo" unless Nokogiri.respond_to?(:HTML5)
|
||||
expect(Capybara.string("<td>1</td>")).not_to have_css('td')
|
||||
skip 'libxml is less strict thatn Gumbo' unless Nokogiri.respond_to?(:HTML5)
|
||||
expect(Capybara.string('<td>1</td>')).not_to have_css('td')
|
||||
end
|
||||
|
||||
it 'can disable use of gumbo' do
|
||||
skip "Test doesn't make sense unlesss nokogumbo is loaded" unless Nokogiri.respond_to?(:HTML5)
|
||||
Capybara.allow_gumbo = false
|
||||
expect(Capybara.string("<td>1</td>")).to have_css('td')
|
||||
expect(Capybara.string('<td>1</td>')).to have_css('td')
|
||||
end
|
||||
|
||||
describe '#title' do
|
||||
|
|
Loading…
Reference in a new issue