Sha256: 2e4256fec2d8e46d62d175b8a387f78e3fd83560731240ac11094dcb6dfe7414

Contents?: true

Size: 469 Bytes

Versions: 8

Compression:

Stored size: 469 Bytes

Contents

# encoding: utf-8
require File.expand_path("../watirspec/spec_helper", __FILE__)

describe "Link" do

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

  describe "absolute_url" do
    it "returns the absolute URL for a link with a relative href attribute" do
      browser.link(:index, Celerity.index_offset + 1).absolute_url.should include("#{WatirSpec.files}/non_control_elements.html".gsub("file://", ''))
    end
  end

end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
celerity_thingista-0.9.3 spec/link_spec.rb
celerity_thingista-0.9.2 spec/link_spec.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/spec/link_spec.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/spec/link_spec.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/spec/link_spec.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/spec/link_spec.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/spec/link_spec.rb
celerity-0.9.2 spec/link_spec.rb