Top Level Namespace

Defined Under Namespace

Modules: CWM, Firewalld, Installation, Packages, UI, Y2Firewall, Y2Packager, Yast, Yast2

Instance Method Summary collapse

Instance Method Details

#expect_to_show_popup_which_return(output) ⇒ Object



7
8
9
10
11
12
13
14
# File 'library/general/src/lib/yast2/popup_rspec.rb', line 7

def expect_to_show_popup_which_return(output)
  expect(Yast2::Popup).to receive(:show).and_call_original
  allow(Yast::UI).to receive(:OpenDialog).and_return true
  allow(Yast::UI).to receive(:CloseDialog)
  allow(Yast::UI).to receive(:SetFocus).and_return true
  allow(Yast::UI).to receive(:UserInput).and_return output
  allow(Yast::UI).to receive(:TimeoutUserInput).and_return output
end