Sha256: cb025e9cee1abd54afada279e0e2b02775b54c089c8fed62138814d6108ad8b7
Contents?: true
Size: 496 Bytes
Versions: 6
Compression:
Stored size: 496 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 = double('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
6 entries across 6 versions & 1 rubygems