spec/spec_helper.rb in te3270-0.8.1 vs spec/spec_helper.rb in te3270-0.9.0
- old
+ new
@@ -5,9 +5,23 @@
if Gem.win_platform?
require 'win32ole'
require 'win32/screenshot'
end
+def bluezone_system
+ @bluezone_system ||= double('system')
+ allow(@bluezone_system).to receive(:Connect).and_return(0)
+ allow(@bluezone_system).to receive(:OpenSession).and_return(0)
+ allow(@bluezone_system).to receive(:Window).and_return(bluezone_window)
+ allow(@bluezone_system).to receive(:WindowState=)
+ @bluezone_system
+end
+
+def bluezone_window
+ @bluezone_window ||= double('window')
+ allow(@bluezone_window).to receive(:Visible=)
+ @bluezone_window
+end
def extra_system
@extra_system ||= double('system')
allow(@extra_system).to receive(:Sessions).and_return extra_sessions
allow(@extra_system).to receive(:Version).and_return("0")