@@ -158,10 +158,12 @@ def test_extract_signature
158
158
class AnnotatedTagTest < Rugged ::TestCase
159
159
def setup
160
160
@repo = FixtureRepo . from_libgit2 ( "testrepo.git" )
161
- @tag = @repo . tags . create ( 'annotated_tag' , "5b5b025afb0b4c913b4c338a42934a3863bf3644" , {
161
+ @tag = @repo . tags . create (
162
+ 'annotated_tag' ,
163
+ "5b5b025afb0b4c913b4c338a42934a3863bf3644" ,
162
164
:message => "test tag message\n " ,
163
165
:tagger => { :name => 'Scott' , :email => '[email protected] ' , :time => Time . now }
164
- } )
166
+ )
165
167
end
166
168
167
169
def test_is_annotated
@@ -242,10 +244,12 @@ def setup
242
244
end
243
245
244
246
def test_writing_a_tag
245
- tag = @repo . tags . create ( 'tag' , "5b5b025afb0b4c913b4c338a42934a3863bf3644" , {
247
+ tag = @repo . tags . create (
248
+ 'tag' ,
249
+ "5b5b025afb0b4c913b4c338a42934a3863bf3644" ,
246
250
:message => "test tag message\n " ,
247
251
:tagger => { :name => 'Scott' , :email => '[email protected] ' , :time => Time . now }
248
- } )
252
+ )
249
253
250
254
annotation = tag . annotation
251
255
assert_equal :tag , annotation . type
@@ -261,20 +265,24 @@ def test_writing_a_tag_without_signature
261
265
@repo . config [ 'user.name' ] = name
262
266
@repo . config [ 'user.email' ] = email
263
267
264
- tag = @repo . tags . create ( 'tag' , "5b5b025afb0b4c913b4c338a42934a3863bf3644" , {
268
+ tag = @repo . tags . create (
269
+ 'tag' ,
270
+ "5b5b025afb0b4c913b4c338a42934a3863bf3644" ,
265
271
:message => "test tag message\n "
266
- } )
272
+ )
267
273
268
274
assert_equal name , tag . annotation . tagger [ :name ]
269
275
assert_equal email , tag . annotation . tagger [ :email ]
270
276
end
271
277
272
278
def test_tag_invalid_message_type
273
279
assert_raises TypeError do
274
- @repo . tags . create ( 'tag' , "5b5b025afb0b4c913b4c338a42934a3863bf3644" , {
280
+ @repo . tags . create (
281
+ 'tag' ,
282
+ "5b5b025afb0b4c913b4c338a42934a3863bf3644" ,
275
283
:message => :invalid_message ,
276
284
:tagger => { :name => 'Scott' , :email => '[email protected] ' , :time => Time . now }
277
- } )
285
+ )
278
286
end
279
287
end
280
288
0 commit comments