require 'spec_helper' describe Symbiont::WebObjects::SelectList do describe "implementation" do let(:select_list_object) { double('select_list_object') } let(:select_list) { Symbiont::WebObjects::SelectList } it "should reference standard usable selectors" do [:class, :id, :name, :index, :xpath].each do |s| locator = select_list.provide_locator_for s => 'value' locator.keys.first.should == s end end it "should register with a select list tag" do ::Symbiont::WebObjects.get_class_for(:select).should == ::Symbiont::WebObjects::SelectList end end end