Sha256: 2c728db5db4cfe9289830b64f2208f921441dea73b130a610cf66d09dd93fc7d

Contents?: true

Size: 552 Bytes

Versions: 2

Compression:

Stored size: 552 Bytes

Contents

require 'spec_helper'

describe Symbiont::WebObjects::Span do
  describe "implementation" do
    let(:span_object) { Symbiont::WebObjects::Span }

    it "should allow locators to be used" do
      [:class, :id, :text, :index, :xpath, :title, :name].each do |t|
        locator = span_object.provide_locator_for t => 'value'
        locator.keys.first.should == t
      end
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

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