Sha256: 35cda3af5e28496e97bad43e1a471f8f3df50bca0d24e0ee42b5aca0bb29986a

Contents?: true

Size: 421 Bytes

Versions: 13

Compression:

Stored size: 421 Bytes

Contents

require 'spec_helper'

describe HTML::Utils do
  describe '::create_nokogiri' do
    it 'passes for a string' do
      noko = HTML::Utils::create_nokogiri '<html lang="jp">'
      expect(noko.css('html').first['lang']).to eq 'jp'
    end
    it 'passes for a file' do
      noko = HTML::Utils::create_nokogiri "#{FIXTURES_DIR}/utils/lang-jp.html"
      expect(noko.css('html').first['lang']).to eq 'jp'
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
html-proofer-2.4.2 spec/html/proofer/utils_spec.rb
html-proofer-2.4.1 spec/html/proofer/utils_spec.rb
html-proofer-2.4.0 spec/html/proofer/utils_spec.rb
html-proofer-2.3.0 spec/html/proofer/utils_spec.rb
html-proofer-2.2.0 spec/html/proofer/utils_spec.rb
html-proofer-2.1.0 spec/html/proofer/utils_spec.rb
html-proofer-2.0.6 spec/html/proofer/utils_spec.rb
html-proofer-2.0.5 spec/html/proofer/utils_spec.rb
html-proofer-2.0.4 spec/html/proofer/utils_spec.rb
html-proofer-2.0.3 spec/html/proofer/utils_spec.rb
html-proofer-2.0.2 spec/html/proofer/utils_spec.rb
html-proofer-2.0.1 spec/html/proofer/utils_spec.rb
html-proofer-2.0.0 spec/html/proofer/utils_spec.rb