Sha256: 01db46c8c95f6e5c6953fb901d3c30c8bb40e60049466babcb60295463f103ff
Contents?: true
Size: 494 Bytes
Versions: 5
Compression:
Stored size: 494 Bytes
Contents
require 'kookaburra/ui_driver/scoped_browser' describe Kookaburra::UIDriver::ScopedBrowser do it 'forwards all method calls to the browser but scopes them to the component locator' do browser = mock('Browser') browser.should_receive(:within).with('#a_component_locator').and_yield browser.should_receive(:some_other_method).with(:foo) subject = Kookaburra::UIDriver::ScopedBrowser.new(browser, lambda { '#a_component_locator' }) subject.some_other_method(:foo) end end
Version data entries
5 entries across 5 versions & 1 rubygems