Sha256: 80841a6c2813a924ee83886765c2d4540b7b1a9b8009f5bae7c0486acb4bce46

Contents?: true

Size: 552 Bytes

Versions: 2

Compression:

Stored size: 552 Bytes

Contents

require 'spec_helper'

describe Symbiont::WebObjects::Paragraph do
  describe "implementation" do
    let(:p_object) { Symbiont::WebObjects::Paragraph }

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

    it "should register with a paragraph (p) tag" do
      ::Symbiont::WebObjects.get_class_for(:p).should == ::Symbiont::WebObjects::Paragraph
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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