-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase coverage for aptly_snapshot.rb #143
Increase coverage for aptly_snapshot.rb #143
Conversation
@@ -196,6 +215,20 @@ def test_snapshot_create_ref | |||
'testrepo_snap_create_ref').code.to_s | |||
end | |||
|
|||
def test_snapshot_create_ref_exception | |||
raises_exception = -> (uri, options) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused block argument - uri
. If it's necessary, use _
or _uri
as an argument name to indicate that it won't be used. Also consider using a proc without arguments instead of a lambda if you want it to accept any arguments but don't care about them.
Unused block argument - options
. If it's necessary, use _
or _options
as an argument name to indicate that it won't be used. Also consider using a proc without arguments instead of a lambda if you want it to accept any arguments but don't care about them.
Use the lambda
method for multi-line lambdas.
ef91349
to
dadea99
Compare
Cover 4 remaining lines in `aptly_snapshot.rb`, bringing coverage of that file to 100%! 😄
dadea99
to
50b156e
Compare
Woot! 100%! Ty! |
Cover 4 remaining lines in
aptly_snapshot.rb
, bringing coverage of that file to 100%! 😄