Sha256: 14b7b7ab2f9dc35d57ec42530107115a5a1ab298113d4fd02ba41538864eebff

Contents?: true

Size: 539 Bytes

Versions: 3

Compression:

Stored size: 539 Bytes

Contents

require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../../../spec_helper'
require 'net/http'
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + "/fixtures/classes"

describe "Net::HTTPHeader#basic_auth when passed account, password" do
  before(:each) do
    @headers = NetHTTPHeaderSpecs::Example.new
  end

  it "sets the 'Authorization' Header entry for basic authorization" do
    @headers.basic_auth("rubyspec", "rocks")
    @headers["Authorization"].should == "Basic cnVieXNwZWM6cm9ja3M="
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rhodes-1.4.2 spec/framework_spec/app/spec/library/net/http/httpheader/basic_auth_spec.rb
rhodes-1.4.1 spec/framework_spec/app/spec/library/net/http/httpheader/basic_auth_spec.rb
rhodes-1.4.0 spec/framework_spec/app/spec/library/net/http/httpheader/basic_auth_spec.rb