Sha256: 3aa8c22c22ff58417b23bef46fa4324d8a868dcbc027a90e886a3d6a8bf80c0a

Contents?: true

Size: 575 Bytes

Versions: 12

Compression:

Stored size: 575 Bytes

Contents

# encoding: utf-8
require File.dirname(__FILE__) + '/spec_helper'

bug "WTR-334", :watir do
  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
    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
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
watir-webdriver-0.0.6 spec/watirspec/meta_spec.rb
watir-webdriver-0.0.5 spec/watirspec/meta_spec.rb
watir-webdriver-0.0.4 spec/watirspec/meta_spec.rb
watir-webdriver-0.0.3 spec/watirspec/meta_spec.rb
watir-webdriver-0.0.2 spec/watirspec/meta_spec.rb
watir-webdriver-0.0.1 spec/watirspec/meta_spec.rb
watir-webdriver-0.0.1.dev7 spec/watirspec/meta_spec.rb
watir-webdriver-0.0.1.dev5 spec/watirspec/meta_spec.rb
watir-webdriver-0.0.1.dev4 spec/watirspec/meta_spec.rb
watir-webdriver-0.0.1.dev3 spec/watirspec/meta_spec.rb
watir-webdriver-0.0.1.dev2 spec/watirspec/meta_spec.rb
watir-webdriver-0.0.1.dev spec/watirspec/meta_spec.rb