test/test_pdd.rb in pdd-0.19.1 vs test/test_pdd.rb in pdd-0.19.2

- old
+ new

@@ -30,11 +30,11 @@ # License:: MIT class TestPDD < Minitest::Test def test_basic Dir.mktmpdir 'test' do |dir| opts = opts(['-q', '-s', dir, '-e', '**/*.png', '-r', 'max-estimate:15']) - File.write(File.join(dir, 'a.txt'), '@todo #55 hello!') + File.write(File.join(dir, 'a.txt'), "\x40todo #55 hello!") matches( Nokogiri::XML(PDD::Base.new(opts).xml), [ '/processing-instruction("xml-stylesheet")[contains(.,".xsl")]', '/puzzles/@version', @@ -47,11 +47,11 @@ end def test_rules_failure Dir.mktmpdir 'test' do |dir| opts = opts(['-q', '-s', dir, '-e', '**/*.png', '-r', 'min-estimate:30']) - File.write(File.join(dir, 'a.txt'), '@todo #90 hello!') + File.write(File.join(dir, 'a.txt'), "\x40todo #90 hello!") assert_raises PDD::Error do PDD::Base.new(opts).xml end end end @@ -68,10 +68,10 @@ git config user.name 'Mr. Tester' mkdir 'a long dir name' cd 'a long dir name' mkdir 'a kid' cd 'a kid' - echo '@todo #1 this is some puzzle' > '.это файл.txt' + echo '\x40todo #1 this is some puzzle' > '.это файл.txt' cd ../.. git add -f . git commit --quiet -am 'first version' ") matches(