Sha256: e875b5d148de25591c079e2840f7d0673c35fa8fd78c32df2a3da3aae58f3dc6

Contents?: true

Size: 603 Bytes

Versions: 2

Compression:

Stored size: 603 Bytes

Contents

require 'spec_helper'

describe Symbiont::WebObjects::HiddenField do
  describe "implementation" do
    let(:hidden_field_object) { Symbiont::WebObjects::HiddenField }

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

    it "should register with a hidden tag" do
      ::Symbiont::WebObjects.get_class_for(:hidden).should == ::Symbiont::WebObjects::HiddenField
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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