Sha256: 2e0bd42ebbd6fe5ac0d69701a24a6b0a3392bd96f4c500c308a804807e796784

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 Bytes

Contents

require 'spec_helper'

describe Symbiont::WebObjects::TextArea do
  describe "implementation" do
    let(:text_area_object) { Symbiont::WebObjects::TextArea }

    it "should reference standard usable selectors" do
      [:class, :id, :name, :index, :xpath, :title, :value, :text, :label].each do |s|
        locator = text_area_object.provide_locator_for s => 'value'
        locator.keys.first.should == s
      end
    end

    it "should register with a text area tag" do
      ::Symbiont::WebObjects.get_class_for(:textarea).should == ::Symbiont::WebObjects::TextArea
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
symbiont-0.2.1 spec/symbiont/web_objects/text_area_spec.rb
symbiont-0.2.0 spec/symbiont/web_objects/text_area_spec.rb