From f22ab3de3717ca37a953b343ec47f78f365a88b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Tue, 28 May 2019 16:53:16 +0100 Subject: [PATCH] Fix API documentation and make RuboCop happy --- src/lib/y2network/config_reader/sysconfig_interfaces.rb | 2 +- test/y2network/config_reader/sysconfig_interfaces_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/y2network/config_reader/sysconfig_interfaces.rb b/src/lib/y2network/config_reader/sysconfig_interfaces.rb index dc0ff0261..5944187d4 100644 --- a/src/lib/y2network/config_reader/sysconfig_interfaces.rb +++ b/src/lib/y2network/config_reader/sysconfig_interfaces.rb @@ -46,7 +46,7 @@ def config # List of interfaces # - # @return [Array] + # @return [InterfacesCollection] def interfaces @interfaces ||= Y2Network::InterfacesCollection.new(physical_interfaces) # + virtual_interfaces end diff --git a/test/y2network/config_reader/sysconfig_interfaces_test.rb b/test/y2network/config_reader/sysconfig_interfaces_test.rb index b4ef7de5e..8fb26e8f9 100644 --- a/test/y2network/config_reader/sysconfig_interfaces_test.rb +++ b/test/y2network/config_reader/sysconfig_interfaces_test.rb @@ -46,7 +46,7 @@ before do allow(Yast::LanItems).to receive(:Hardware).and_return(netcards) allow(Yast::SCR).to receive(:Dir).with(Yast::Path.new(".network.section")) - .and_return(configured_interfaces) + .and_return(configured_interfaces) allow(Yast::NetworkInterfaces).to receive(:GetTypeFromSysfs) { |n| TYPES[n] } allow(Yast::SCR).to receive(:Read) do |path, &block| m = SCR_PATH_REGEXP.match(path.to_s)