@@ -158,10 +158,12 @@ def test_extract_signature
158158class AnnotatedTagTest < Rugged ::TestCase
159159 def setup
160160 @repo = FixtureRepo . from_libgit2 ( "testrepo.git" )
161- @tag = @repo . tags . create ( 'annotated_tag' , "5b5b025afb0b4c913b4c338a42934a3863bf3644" , {
161+ @tag = @repo . tags . create (
162+ 'annotated_tag' ,
163+ "5b5b025afb0b4c913b4c338a42934a3863bf3644" ,
162164 :message => "test tag message\n " ,
163165 :tagger => { :name => 'Scott' , :email => '[email protected] ' , :time => Time . now } 164- } )
166+ )
165167 end
166168
167169 def test_is_annotated
@@ -242,10 +244,12 @@ def setup
242244 end
243245
244246 def test_writing_a_tag
245- tag = @repo . tags . create ( 'tag' , "5b5b025afb0b4c913b4c338a42934a3863bf3644" , {
247+ tag = @repo . tags . create (
248+ 'tag' ,
249+ "5b5b025afb0b4c913b4c338a42934a3863bf3644" ,
246250 :message => "test tag message\n " ,
247251 :tagger => { :name => 'Scott' , :email => '[email protected] ' , :time => Time . now } 248- } )
252+ )
249253
250254 annotation = tag . annotation
251255 assert_equal :tag , annotation . type
@@ -261,20 +265,24 @@ def test_writing_a_tag_without_signature
261265 @repo . config [ 'user.name' ] = name
262266 @repo . config [ 'user.email' ] = email
263267
264- tag = @repo . tags . create ( 'tag' , "5b5b025afb0b4c913b4c338a42934a3863bf3644" , {
268+ tag = @repo . tags . create (
269+ 'tag' ,
270+ "5b5b025afb0b4c913b4c338a42934a3863bf3644" ,
265271 :message => "test tag message\n "
266- } )
272+ )
267273
268274 assert_equal name , tag . annotation . tagger [ :name ]
269275 assert_equal email , tag . annotation . tagger [ :email ]
270276 end
271277
272278 def test_tag_invalid_message_type
273279 assert_raises TypeError do
274- @repo . tags . create ( 'tag' , "5b5b025afb0b4c913b4c338a42934a3863bf3644" , {
280+ @repo . tags . create (
281+ 'tag' ,
282+ "5b5b025afb0b4c913b4c338a42934a3863bf3644" ,
275283 :message => :invalid_message ,
276284 :tagger => { :name => 'Scott' , :email => '[email protected] ' , :time => Time . now } 277- } )
285+ )
278286 end
279287 end
280288
0 commit comments