test/extra/validators/test_w3c.rb in nanoc-3.7.4 vs test/extra/validators/test_w3c.rb in nanoc-3.7.5

- old
+ new

@@ -1,12 +1,11 @@ # encoding: utf-8 class Nanoc::Extra::Validators::W3CTest < Nanoc::TestCase - def test_simple if_have 'w3c_validators' do - with_site do |site| + with_site do |_site| # Create some sample files %w(foo bar baz).each do |filename| %w(xxx yyy).each do |extension| File.open("output/#{filename}.#{extension}", 'w') { |io| io.write('hello') } end @@ -21,11 +20,11 @@ end end def test_with_unknown_types if_have 'w3c_validators' do - with_site do |site| + with_site do |_site| # Create validator w3c = Nanoc::Extra::Validators::W3C.new('.', [:foo]) # Test exception = assert_raises Nanoc::Errors::GenericTrivial do @@ -33,7 +32,6 @@ end assert_equal 'unknown type(s) specified: foo', exception.message end end end - end