Skip to content

Commit

Permalink
Fix routing_section tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Aug 26, 2020
1 parent f24f233 commit 1060b61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/y2network/autoinst_profile/routing_section_test.rb
Expand Up @@ -33,7 +33,8 @@
let(:parent) { double("parent section") }

before do
allow(Y2Network::AutoinstProfile::RouteSection).to receive(:new_from_network).with(route1)
allow(Y2Network::AutoinstProfile::RouteSection).to receive(:new_from_network)
.with(route1, Y2Network::AutoinstProfile::RoutingSection)
.and_return(route_section)
end

Expand Down Expand Up @@ -71,7 +72,8 @@
let(:route_section) { double("RouteSection") }

before do
allow(Y2Network::AutoinstProfile::RouteSection).to receive(:new_from_hashes).with(route)
allow(Y2Network::AutoinstProfile::RouteSection).to receive(:new_from_hashes)
.with(route, Y2Network::AutoinstProfile::RoutingSection)
.and_return(route_section)
end

Expand Down

0 comments on commit 1060b61

Please sign in to comment.