test/extra/validators/test_w3c.rb in nanoc-3.7.3 vs test/extra/validators/test_w3c.rb in nanoc-3.7.4
- old
+ new
@@ -4,18 +4,18 @@
def test_simple
if_have 'w3c_validators' do
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") }
+ %w(foo bar baz).each do |filename|
+ %w(xxx yyy).each do |extension|
+ File.open("output/#{filename}.#{extension}", 'w') { |io| io.write('hello') }
end
end
# Create validator
- w3c = Nanoc::Extra::Validators::W3C.new('.', [ :html ])
+ w3c = Nanoc::Extra::Validators::W3C.new('.', [:html])
# Run
w3c.run
end
end
@@ -23,10 +23,10 @@
def test_with_unknown_types
if_have 'w3c_validators' do
with_site do |site|
# Create validator
- w3c = Nanoc::Extra::Validators::W3C.new('.', [ :foo ])
+ w3c = Nanoc::Extra::Validators::W3C.new('.', [:foo])
# Test
exception = assert_raises Nanoc::Errors::GenericTrivial do
w3c.run
end