require 'spec_helper' describe Symbiont::WebObjects::ListItem do describe "implementation" do let(:list_item_object) { Symbiont::WebObjects::ListItem } it "should allow locators to be used" do [:class, :id, :index, :xpath, :name, :text].each do |t| locator = list_item_object.provide_locator_for t => 'value' locator.keys.first.should == t end end it "should register with a list item (li) tag" do ::Symbiont::WebObjects.get_class_for(:li).should == ::Symbiont::WebObjects::ListItem end end end