test/aitch/request_test.rb in aitch-1.2.2 vs test/aitch/request_test.rb in aitch-2.0.0

- old
+ new

@@ -148,10 +148,10 @@ assert_equal "VALUE", request["HEADER"] end test "sets basic auth credentials" do request = build_request(options: {user: "USER", password: "PASS"}).request - credentials = Base64.decode64(request["Authorization"].gsub(/Basic /, "")) + credentials = Base64.decode64(request["Authorization"].gsub("Basic ", "")) assert_equal "USER:PASS", credentials end test "performs request when using dsl" do