Sha256: 1da838406d4c3c5fe0492c660e632612ddd8e6e163b044612a3b74ae34d01a3a

Contents?: true

Size: 612 Bytes

Versions: 1

Compression:

Stored size: 612 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper.rb'

describe "Meta" do

  before :all do
    @browser = Browser.new(BROWSER_OPTIONS)
  end

  before :each do
    @browser.goto(HTML_DIR + "/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
  after :all do
    @browser.close
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caius-celerity-0.0.6.11 spec/meta_spec.rb