Skip to content

Commit

Permalink
Fix API documentation and make RuboCop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed May 28, 2019
1 parent 5197a57 commit f22ab3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/y2network/config_reader/sysconfig_interfaces.rb
Expand Up @@ -46,7 +46,7 @@ def config

# List of interfaces
#
# @return [Array<Interface>]
# @return [InterfacesCollection]
def interfaces
@interfaces ||= Y2Network::InterfacesCollection.new(physical_interfaces) # + virtual_interfaces
end
Expand Down
2 changes: 1 addition & 1 deletion test/y2network/config_reader/sysconfig_interfaces_test.rb
Expand Up @@ -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)
Expand Down

0 comments on commit f22ab3d

Please sign in to comment.