Skip to content

Commit

Permalink
Rename leftover call to already_configured?
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Nov 23, 2020
1 parent 91cf41f commit b73c38c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/y2network/interface_config_builders/bridge_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
end
end

describe "#already_configured?" do
describe "#require_adaptation?" do
it "returns boolean" do
expect(subject.already_configured?([])).to eq false
expect(subject.require_adaptation?([])).to eq false
end
end
end
4 changes: 2 additions & 2 deletions test/y2network/widgets/bridge_ports_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
subject { described_class.new(builder) }

before do
allow(builder).to receive(:already_configured?).and_return(false)
allow(builder).to receive(:require_adaptation?).and_return(false)
end

include_examples "CWM::MultiSelectionBox"
Expand All @@ -43,7 +43,7 @@

context "when some of the enslaved interfaces are configured" do
it "warns the user and request confirmation to continue" do
allow(builder).to receive(:already_configured?).and_return(true)
allow(builder).to receive(:require_adaptation?).and_return(true)

expect(Yast::Popup).to receive(:ContinueCancel).and_return(true)

Expand Down

0 comments on commit b73c38c

Please sign in to comment.