@@ -13,7 +13,7 @@ def test_new_should_raise_on_invalid_repo_location(self):
1313
1414 @raises (NoSuchPathError )
1515 def test_new_should_raise_on_non_existant_path (self ):
16- Repo ("/foobar" )
16+ Repo ("~ /foobar" )
1717
1818 def test_description (self ):
1919 assert_equal ("Unnamed repository; edit this file to name it for gitweb." , self .repo .description )
@@ -108,45 +108,45 @@ def test_blob(self, git):
108108 def test_init_bare (self , repo , git ):
109109 git .return_value = True
110110
111- Repo .init_bare ("/foo/bar.git" )
111+ Repo .init_bare ("~ /foo/bar.git" )
112112
113113 assert_true (git .called )
114114 assert_equal (git .call_args , (('init' ,), {}))
115115 assert_true (repo .called )
116- assert_equal (repo .call_args , (('/foo/bar.git' ,), {}))
116+ assert_equal (repo .call_args , (('~ /foo/bar.git' ,), {}))
117117
118118 @patch (Repo , '__init__' )
119119 @patch (Git , 'method_missing' )
120120 def test_init_bare_with_options (self , repo , git ):
121121 git .return_value = True
122122
123- Repo .init_bare ("/foo/bar.git" , ** {'template' : "/baz/sweet" })
123+ Repo .init_bare ("~ /foo/bar.git" , ** {'template' : "/baz/sweet" })
124124
125125 assert_true (git .called )
126126 assert_equal (git .call_args , (('init' ,), {'template' : '/baz/sweet' }))
127127 assert_true (repo .called )
128- assert_equal (repo .call_args , (('/foo/bar.git' ,), {}))
128+ assert_equal (repo .call_args , (('~ /foo/bar.git' ,), {}))
129129
130130 @patch (Repo , '__init__' )
131131 @patch (Git , 'method_missing' )
132132 def test_fork_bare (self , repo , git ):
133133 git .return_value = None
134134
135- self .repo .fork_bare ("/foo/bar.git" )
135+ self .repo .fork_bare ("~ /foo/bar.git" )
136136
137137 assert_true (git .called )
138- assert_equal (git .call_args , (('clone' , '%s/.git' % absolute_project_path (), '/foo/bar.git' ), {'bare' : True }))
138+ assert_equal (git .call_args , (('clone' , '%s/.git' % absolute_project_path (), '~ /foo/bar.git' ), {'bare' : True }))
139139 assert_true (repo .called )
140140
141141 @patch (Repo , '__init__' )
142142 @patch (Git , 'method_missing' )
143143 def test_fork_bare_with_options (self , repo , git ):
144144 git .return_value = None
145145
146- self .repo .fork_bare ("/foo/bar.git" , ** {'template' : '/awesome' })
146+ self .repo .fork_bare ("~ /foo/bar.git" , ** {'template' : '/awesome' })
147147
148148 assert_true (git .called )
149- assert_equal (git .call_args , (('clone' , '%s/.git' % absolute_project_path (), '/foo/bar.git' ),
149+ assert_equal (git .call_args , (('clone' , '%s/.git' % absolute_project_path (), '~ /foo/bar.git' ),
150150 {'bare' : True , 'template' : '/awesome' }))
151151 assert_true (repo .called )
152152
0 commit comments