X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8a3fb7961809da1a2aeca4bfd26c012f794379e3..b7b9ea44ada30b1251fb10c872cb1da1d7c29bd0:/services/api/test/unit/app_version_test.rb diff --git a/services/api/test/unit/app_version_test.rb b/services/api/test/unit/app_version_test.rb index eaf9cbb4ad..3e9b16757d 100644 --- a/services/api/test/unit/app_version_test.rb +++ b/services/api/test/unit/app_version_test.rb @@ -8,7 +8,7 @@ class AppVersionTest < ActiveSupport::TestCase test 'invoke git processes only on first call' do AppVersion.expects(:git). - with("status", "-s").once. + with("status", "--porcelain").once. yields " M services/api/README\n" AppVersion.expects(:git). with("log", "-n1", "--format=%H").once. @@ -29,7 +29,8 @@ class AppVersionTest < ActiveSupport::TestCase test 'override with file' do path = Rails.root.join 'git-commit.version' - assert !File.exists?(path) + assert(!File.exists?(path), + "Packaged version file found in source tree: #{path}") begin File.open(path, 'w') do |f| f.write "0.1.abc123\n"