test/test_pdd.rb in pdd-0.17.1 vs test/test_pdd.rb in pdd-0.17.2

- old
+ new

@@ -1,9 +1,8 @@ # encoding: utf-8 # -# Copyright (c) 2014-2016 TechnoPark Corp. -# Copyright (c) 2014-2016 Yegor Bugayenko +# Copyright (c) 2014-2017 Yegor Bugayenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -27,11 +26,11 @@ require 'tmpdir' require 'slop' # PDD main module test. # Author:: Yegor Bugayenko (yegor@teamed.io) -# Copyright:: Copyright (c) 2014-2016 Yegor Bugayenko +# Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko # License:: MIT class TestPDD < Minitest::Test def test_basic Dir.mktmpdir 'test' do |dir| opts = opts(['-v', '-s', dir, '-e', '**/*.png', '-r', 'max-estimate:15']) @@ -67,19 +66,19 @@ set -e cd '#{dir}' git init . git config user.email test@teamed.io git config user.name 'Mr. Tester' - echo '@todo #1 this is the puzzle' > x.txt - git add x.txt + echo '@todo #1 this is the puzzle' > .x.txt + git add .x.txt git commit -am 'first version' ") matches( Nokogiri::XML(PDD::Base.new(opts).xml), [ '/puzzles[count(puzzle)=1]', '/puzzles/puzzle[id]', - '/puzzles/puzzle[file="x.txt"]', + '/puzzles/puzzle[file=".x.txt"]', '/puzzles/puzzle[author="Mr. Tester"]', '/puzzles/puzzle[email="test@teamed.io"]', '/puzzles/puzzle[time]' ] )