Sha256: 333d27ba59666308d4a2ec2e9fe693d71b49dfc9527ba4ae279deab3bbd255e3

Contents?: true

Size: 615 Bytes

Versions: 3

Compression:

Stored size: 615 Bytes

Contents

# encoding: utf-8
require File.expand_path("../spec_helper", __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

3 entries across 3 versions & 1 rubygems

Version Path
watir-webdriver-0.1.4 spec/watirspec/meta_spec.rb
watir-webdriver-0.1.3 spec/watirspec/meta_spec.rb
watir-webdriver-0.1.2 spec/watirspec/meta_spec.rb