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