Sha256: 689564ad66e7c1c57eb470c3db365cb6bdc6818943e66f27341aa23c07baf915
Contents?: true
Size: 720 Bytes
Versions: 1
Compression:
Stored size: 720 Bytes
Contents
require 'spec_helper' # methods each pageobject should have # set value options elements describe Domkey::View::PageObject do before :all do goto_html("test.html") end context 'delegate to element for missing methods' do before :all do @o = Domkey::View::PageObject.new -> { text_field(id: 'city1') } end it 'should delegate to element when element responds' do @o.should respond_to(:id) @o.id.should eql 'city1' @o.should respond_to(:click) @o.click end it 'should not delegate to element when element does not repsond' do @o.should_not respond_to(:textaramabada) expect { @o.textaramabada }.to raise_error(NoMethodError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
domkey-0.3.1 | spec/page_object_delegates_spec.rb |