Sha256: f404d266bef351e9b2ebdaa9f49ed8e446f81996f3ff435e50b1ccd7a5b3f344
Contents?: true
Size: 420 Bytes
Versions: 6
Compression:
Stored size: 420 Bytes
Contents
require 'spec_helper' describe Wombat::Property::Locators::List do it 'should locate a list of nodes' do context = double :context context.stub(:css).with(".selector").and_return %w(1 2 3 4 5) property = Wombat::DSL::Property.new('data1', 'css=.selector', :list) locator = Wombat::Property::Locators::List.new(property) locator.locate(context).should == { "data1" => %w(1 2 3 4 5) } end end
Version data entries
6 entries across 6 versions & 1 rubygems