test/test_hoc.rb in hoc-0.7.1 vs test/test_hoc.rb in hoc-0.7.2
- old
+ new
@@ -1,9 +1,9 @@
# encoding: utf-8
#
-# Copyright (c) 2014 Teamed.io
-# Copyright (c) 2014 Yegor Bugayenko
+# Copyright (c) 2014-2017 Teamed.io
+# 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
@@ -26,17 +26,17 @@
require 'tmpdir'
require 'slop'
# HOC main module test.
# Author:: Yegor Bugayenko (yegor@teamed.io)
-# Copyright:: Copyright (c) 2014 Yegor Bugayenko
+# Copyright:: Copyright (c) 2014-2017 Yegor Bugayenko
# License:: MIT
class TestHOC < Minitest::Test
def test_basic_git
skip if Gem.win_platform?
Dir.mktmpdir 'test' do |dir|
- fail unless system("
+ raise unless system("
set -e
cd '#{dir}'
git init .
git config user.email test@teamed.io
git config user.name test
@@ -49,10 +49,10 @@
end
def test_basic_svn
skip if Gem.win_platform?
Dir.mktmpdir 'test' do |dir|
- fail unless system("
+ raise unless system("
set -e
cd '#{dir}'
svnadmin create base
svn co file://#{dir}/base repo
cd repo