Sha256: 574aed141b2d6d1cb6300bdd04af142c9b7404bf0dd1d8839f1e6da25ef96a35

Contents?: true

Size: 626 Bytes

Versions: 4

Compression:

Stored size: 626 Bytes

Contents

# encoding: utf-8
require File.expand_path('spec_helper', File.dirname(__FILE__))

describe "Meta" do
  before :each do
    browser.goto(WatirSpec.files + "/forms_with_input_elements.html")
  end

  describe "#exist?" do
    it "returns true if the meta tag exists" do
      browser.meta(:http_equiv, "Content-Type").should exist
    end

    it "returns the first meta if given no args" do
      browser.meta.should exist
    end
  end

  describe "content" do
    it "returns the content attribute of the tag" do
      browser.meta(:http_equiv, "Content-Type").content.should == "text/html; charset=utf-8"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
watir-webdriver-0.1.1 spec/watirspec/meta_spec.rb
watir-webdriver-0.1.0 spec/watirspec/meta_spec.rb
watir-webdriver-0.0.9 spec/watirspec/meta_spec.rb
watir-webdriver-0.0.8 spec/watirspec/meta_spec.rb