Sha256: dd40f1ee8d7a4b5e75d2eb147b8b16dc12b1486e10eb82a9fc3d03ed609c32ec
Contents?: true
Size: 955 Bytes
Versions: 5
Compression:
Stored size: 955 Bytes
Contents
# encoding: utf-8 class Nanoc::Extra::Checking::Checks::CSSTest < MiniTest::Unit::TestCase include Nanoc::TestHelpers def test_run_ok with_site do |site| # Create files FileUtils.mkdir_p('output') File.open('output/blah.html', 'w') { |io| io.write('<h1>Hi!</h1>') } File.open('output/style.css', 'w') { |io| io.write('h1 { color: red; }') } # Run check check = Nanoc::Extra::Checking::Checks::CSS.new(site) check.run # Check assert check.issues.empty? end end def test_run_error with_site do |site| # Create files FileUtils.mkdir_p('output') File.open('output/blah.html', 'w') { |io| io.write('<h1>Hi!</h1>') } File.open('output/style.css', 'w') { |io| io.write('h1 { coxlor: rxed; }') } # Run check check = Nanoc::Extra::Checking::Checks::CSS.new(site) check.run # Check refute check.issues.empty? end end end
Version data entries
5 entries across 5 versions & 1 rubygems