@@ -31,12 +31,13 @@ def test_should_return_blob_contents_with_newline(self, git):
3131 @patch_object (Git , '_call_process' )
3232 def test_should_cache_data (self , git ):
3333 git .return_value = fixture ('cat_file_blob' )
34- blob = Blob (self .repo , ** {'id' : 'abc' })
34+ bid = '787b92b63f629398f3d2ceb20f7f0c2578259e84'
35+ blob = Blob (self .repo , bid )
3536 blob .data
3637 blob .data
3738 assert_true (git .called )
3839 assert_equal (git .call_count , 1 )
39- assert_equal (git .call_args , (('cat_file' , 'abc' ), {'p' : True , 'with_raw_output' : True }))
40+ assert_equal (git .call_args , (('cat_file' , bid ), {'p' : True , 'with_raw_output' : True }))
4041
4142 @patch_object (Git , '_call_process' )
4243 def test_should_return_file_size (self , git ):
@@ -61,7 +62,7 @@ def test_mime_type_should_return_mime_type_for_known_types(self):
6162 assert_equal ("image/png" , blob .mime_type )
6263
6364 def test_mime_type_should_return_text_plain_for_unknown_types (self ):
64- blob = Blob (self .repo , ** {'id' : 'abc' })
65+ blob = Blob (self .repo , ** {'id' : 'abc' , 'path' : 'something' })
6566 assert_equal ("text/plain" , blob .mime_type )
6667
6768 @patch_object (Git , '_call_process' )
0 commit comments