Sha256: a157abf1bda27a503176b00eade0563f5ce6b90d61e1bb03ea56f358050f78f2

Contents?: true

Size: 423 Bytes

Versions: 8

Compression:

Stored size: 423 Bytes

Contents

require File.expand_path("../watirspec/spec_helper", __FILE__)

describe "Browser" do

  describe "#credentials=" do
    it "sets the basic authentication credentials" do
      browser.goto(WatirSpec.host + "/authentication")

      browser.text.should_not include("ok")
      browser.credentials = "foo:bar"

      browser.goto(WatirSpec.host + "/authentication")
      browser.text.should include("ok")
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

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