Fix rubocop issues

This commit is contained in:
Thomas Walpole 2018-12-07 08:52:52 -08:00
parent 40d7d2389a
commit 6cd5eb4167
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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