Sha256: a11dc8a69dafbe757b83e73ea40fe9dd04d9d4087f6eb50071e26830c9dda6b8

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

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

describe "Browser" do

  before :all do
    @browser = Browser.new(:log_level => :off)
  end

  describe "#credentials=" do
    it "sets the basic authentication credentials" do
      @browser.goto(TEST_HOST + "/authentication/")
      @browser.text.should_not include("Index of /authentication/")

      @browser.credentials = "foo:bar"

      @browser.goto(TEST_HOST + "/authentication/")
      @browser.text.should include("Index of /authentication/")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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