summaryrefslogtreecommitdiff
path: root/tests-clar/refs/update.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-11-14 14:05:52 -0800
committerBen Straub <bs@github.com>2013-11-14 14:05:52 -0800
commit1782038144ef3413831801bb9c2f3038a84ac6f4 (patch)
treef074cc30890a20f5418c10fae1815ca516588a27 /tests-clar/refs/update.c
parent7b947bf5cc59eefa83c28eb5f5fd8434207ebb8b (diff)
downloadlibgit2-1782038144ef3413831801bb9c2f3038a84ac6f4.tar.gz
Rename tests-clar to tests
Diffstat (limited to 'tests-clar/refs/update.c')
-rw-r--r--tests-clar/refs/update.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/tests-clar/refs/update.c b/tests-clar/refs/update.c
deleted file mode 100644
index 205b526a2..000000000
--- a/tests-clar/refs/update.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "clar_libgit2.h"
-
-#include "refs.h"
-
-static git_repository *g_repo;
-
-void test_refs_update__initialize(void)
-{
- g_repo = cl_git_sandbox_init("testrepo.git");
-}
-
-void test_refs_update__cleanup(void)
-{
- cl_git_sandbox_cleanup();
-}
-
-void test_refs_update__updating_the_target_of_a_symref_with_an_invalid_name_returns_EINVALIDSPEC(void)
-{
- git_reference *head;
-
- cl_git_pass(git_reference_lookup(&head, g_repo, GIT_HEAD_FILE));
- cl_assert_equal_i(GIT_REF_SYMBOLIC, git_reference_type(head));
- git_reference_free(head);
-
- cl_assert_equal_i(GIT_EINVALIDSPEC, git_reference_symbolic_create(&head, g_repo, GIT_HEAD_FILE, "refs/heads/inv@{id", 1));
-}