Sha256: 92f35126aa86a538d25d95a58c87abb8c4e731dc20a7db80e97d595198546e46

Contents?: true

Size: 357 Bytes

Versions: 8

Compression:

Stored size: 357 Bytes

Contents

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

describe WebMock::Util::Headers do

  it "should decode_userinfo_from_header handles basic auth" do
    authorization_header = "Basic dXNlcm5hbWU6c2VjcmV0"
    userinfo = Util::Headers.decode_userinfo_from_header(authorization_header)
    userinfo.should == "username:secret"
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
webmock-1.0.0 spec/util/headers_spec.rb
webmock-0.9.1 spec/util/headers_spec.rb
webmock-0.9.0 spec/util/headers_spec.rb
webmock-0.8.2 spec/util/headers_spec.rb
webmock-0.8.1 spec/util/headers_spec.rb
webmock-0.8.0 spec/util/headers_spec.rb
webmock-0.7.3 spec/util/headers_spec.rb
webmock-0.7.2 spec/util/headers_spec.rb