Sha256: cc55b643bb09c1291a56928bdac99f09c20458acf15808471ed4307f9fa70259
Contents?: true
Size: 710 Bytes
Versions: 1
Compression:
Stored size: 710 Bytes
Contents
require 'spec_helper' class TestScreen include Mohawk window(:title => "Some Window Title") text(:text_id, :id => "textId") end describe Mohawk do let(:screen) { TestScreen.new } let(:window) { double('RAutomation Window') } it "uses the uia adapter by default" do RAutomation::Window.should_receive(:new).with(:title => "Some Window Title", :adapter => :ms_uia).and_return(window) TestScreen.new end context "using the UI Automation adapter" do before(:each) do RAutomation::Window.stub(:new).and_return(window) end it "knows if a window exists" do window.should_receive(:exist?) screen.exist? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mohawk-0.0.1 | spec/lib/mohawk_spec.rb |