Sha256: c56c2956b4096383a7fcfd02fd5ccdf55bde15257a9c69a346b7a95fe86a94cb
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
require 'spec_helper' describe Wombat::Property::Locators::Html do it 'should locate html property' do fake_elem = double :element context = double :context fake_elem.stub inner_html: "Something cool " context.stub(:xpath).with("/abc", nil).and_return [fake_elem] property = Wombat::DSL::Property.new('data1', 'xpath=/abc', :html) locator = Wombat::Property::Locators::Html.new(property) locator.locate(context).should == { "data1" => "Something cool" } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wombat-2.0.0 | spec/property/locators/html_spec.rb |