Skip to content

Commit

Permalink
satisfy rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 30, 2015
1 parent 04fbc4f commit 8c19f06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion library/packages/src/lib/packages/dummy_callbacks.rb
@@ -1,6 +1,8 @@
require "yast"

module Packages
# Empty callbacks for package bindings. To register empty bindings in Yast::Pkg just call
# {Package::DummyCallbacks.register}
class DummyCallbacks
class << self
include Yast::Logger
Expand All @@ -20,6 +22,7 @@ def register
end

private

def fun_ref(*args)
Yast::FunRef.new(*args)
end
Expand Down Expand Up @@ -355,7 +358,6 @@ def register_download_callbacks

nil
end

end
end
end
5 changes: 2 additions & 3 deletions library/packages/test/dummy_callbacks_test.rb
Expand Up @@ -6,7 +6,7 @@

class FakePkg
class << self
def method_missing(met, *args, &block)
def method_missing(_met, *args, &_block)
signature = args.first.signature
if signature.include?("()")
args_count = 0
Expand All @@ -26,7 +26,6 @@ def method_missing(met, *args, &block)
end

it "registers valid methods to Pkg" do
expect{Packages::DummyCallbacks.register}.to_not raise_error
expect { Packages::DummyCallbacks.register }.to_not raise_error
end
end

0 comments on commit 8c19f06

Please sign in to comment.