Skip to content

Commit

Permalink
Fix RuboCop
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jan 27, 2021
1 parent 44a051c commit 30b77e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/y2network/interfaces_collection_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@
subject(:collection) { described_class.new(interfaces) }

let(:eth0) { Y2Network::PhysicalInterface.new("eth0") }
let(:br0) { Y2Network::VirtualInterface.new("br0", type: Y2Network::InterfaceType::BRIDGE) }
let(:wlan0) { Y2Network::PhysicalInterface.new("wlan0", type: Y2Network::InterfaceType::WIRELESS) }
let(:br0) do
Y2Network::VirtualInterface.new("br0", type: Y2Network::InterfaceType::BRIDGE)
end
let(:wlan0) do
Y2Network::PhysicalInterface.new("wlan0", type: Y2Network::InterfaceType::WIRELESS)
end
let(:interfaces) { [eth0, br0, wlan0] }

describe "#by_name" do
Expand Down

0 comments on commit 30b77e3

Please sign in to comment.