@@ -6,39 +6,39 @@ def setup
66 end
77
88 def test_new
9- refdb = Rugged ::Odb . new ( )
10- assert_instance_of Rugged ::Odb , refdb
9+ odb = Rugged ::Odb . new ( )
10+ assert_instance_of Rugged ::Odb , odb
1111 end
1212
1313 def test_add_backend
14- refdb = Rugged ::Odb . new ( )
15- refdb . add_backend ( Rugged ::Odb ::Backend ::Loose . new ( File . join ( @repo . path , "objects" ) , -1 , 0 , 0 , 0 ) , 1 )
14+ odb = Rugged ::Odb . new ( )
15+ odb . add_backend ( Rugged ::Odb ::Backend ::Loose . new ( File . join ( @repo . path , "objects" ) , -1 , 0 , 0 , 0 ) , 1 )
1616 end
1717
1818 def test_each_loose
19- refdb = Rugged ::Odb . new ( )
20- refdb . add_backend ( Rugged ::Odb ::Backend ::Loose . new ( File . join ( @repo . path , "objects" ) , -1 , 0 , 0 , 0 ) , 1 )
19+ odb = Rugged ::Odb . new ( )
20+ odb . add_backend ( Rugged ::Odb ::Backend ::Loose . new ( File . join ( @repo . path , "objects" ) , -1 , 0 , 0 , 0 ) , 1 )
2121
2222 ids = [ ]
23- refdb . each { |id | ids << id }
23+ odb . each { |id | ids << id }
2424 assert_equal 31 , ids . length
2525 end
2626
2727 def test_each_pack
28- refdb = Rugged ::Odb . new ( )
29- refdb . add_backend ( Rugged ::Odb ::Backend ::Pack . new ( File . join ( @repo . path , "objects" ) ) , 1 )
28+ odb = Rugged ::Odb . new ( )
29+ odb . add_backend ( Rugged ::Odb ::Backend ::Pack . new ( File . join ( @repo . path , "objects" ) ) , 1 )
3030
3131 ids = [ ]
32- refdb . each { |id | ids << id }
32+ odb . each { |id | ids << id }
3333 assert_equal 6 , ids . length
3434 end
3535
3636 def test_each_one_pack
37- refdb = Rugged ::Odb . new ( )
38- refdb . add_backend ( Rugged ::Odb ::Backend ::OnePack . new ( File . join ( @repo . path , "objects" , "pack" , "pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.idx" ) ) , 1 )
37+ odb = Rugged ::Odb . new ( )
38+ odb . add_backend ( Rugged ::Odb ::Backend ::OnePack . new ( File . join ( @repo . path , "objects" , "pack" , "pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.idx" ) ) , 1 )
3939
4040 ids = [ ]
41- refdb . each { |id | ids << id }
41+ odb . each { |id | ids << id }
4242 assert_equal 6 , ids . length
4343 end
4444end
0 commit comments