From 29c711bc398f360bc5522e3925885a93f8911afc Mon Sep 17 00:00:00 2001 From: Eric Merritt Date: Mon, 7 Sep 2015 10:53:36 -0700 Subject: [PATCH] remove ec_git_vsn_test This test only had one test that dependended entirely on the state of *this* git repository. Tests shouldn't depend on external unmanaged state not changing. --- test/ec_git_vsn_tests.erl | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 test/ec_git_vsn_tests.erl diff --git a/test/ec_git_vsn_tests.erl b/test/ec_git_vsn_tests.erl deleted file mode 100644 index b21abc1..0000000 --- a/test/ec_git_vsn_tests.erl +++ /dev/null @@ -1,15 +0,0 @@ --module(ec_git_vsn_tests). --include_lib("eunit/include/eunit.hrl"). --compile([export_all]). - - -%% Hi! This test only works because you've cloned this repo out of git -%% AND we're tagging this repo with a "v" prefix. Hey, it's better -%% than nothing. -vsn_grep_test() -> - {ok, VSN} = ec_git_vsn:vsn({"v"}), - - [$v|OtherVSN] = os:cmd("git tag | xargs -I@ git log --format=format:\"%ai @%n\" -1 @ | sort -r | awk '{print $4}' | head -n 1"), - - ?assertEqual(OtherVSN, VSN ++ "\n"), - ok.