test/test_pdd.rb in pdd-0.15.4 vs test/test_pdd.rb in pdd-0.16
- old
+ new
@@ -61,11 +61,11 @@
def test_git_repo
skip if Gem.win_platform?
Dir.mktmpdir 'test' do |dir|
opts = opts(['-v', '-s', dir])
- fail unless system("
+ raise unless system("
set -e
cd '#{dir}'
git init .
git config user.email test@teamed.io
git config user.name 'Mr. Tester'
@@ -98,9 +98,9 @@
end
end
def matches(xml, xpaths)
xpaths.each do |xpath|
- fail "doesn't match '#{xpath}': #{xml}" unless xml.xpath(xpath).size == 1
+ raise "doesn't match '#{xpath}': #{xml}" unless xml.xpath(xpath).size == 1
end
end
end