Skip to content

Commit 2b8a90a

Browse files
committed
Mac fixes
1 parent 5eef657 commit 2b8a90a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

authenticators/GoogleAuthenticator.cls

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ Public Sub Login()
9393
Exit Sub
9494
End If
9595

96+
Dim auth_Completed As Boolean
97+
auth_Completed = True
98+
9699
#If Mac Then
97100

98101
' Mac login opens dialog and then user copy-paste's authorization code into InputBox
@@ -122,8 +125,6 @@ Public Sub Login()
122125
On Error GoTo auth_Cleanup
123126

124127
Dim auth_IE As Object
125-
Dim auth_Completed As Boolean
126-
127128
auth_Completed = False
128129

129130
Set auth_IE = CreateObject("InternetExplorer.Application")

specs/Specs_WebClient.bas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Public Function Specs() As SpecSuite
2222
Dim i As Integer
2323
Dim Options As Dictionary
2424
Dim XMLBody As Object
25+
Dim Curl As String
2526

2627
Client.BaseUrl = HttpbinBaseUrl
2728
Client.TimeoutMs = 5000
@@ -69,13 +70,14 @@ Public Function Specs() As SpecSuite
6970

7071
With Specs.It("[Mac-only] Insecure should set --insecure flag in cURL")
7172
#If Mac Then
72-
Dim Curl As String
73-
Curl = Client.PrepareCurlRequest(Request)
73+
Set Request = New WebRequest
7474

75+
Curl = Client.PrepareCurlRequest(Request)
7576
.Expect(Curl).ToNotMatch "--insecure"
7677

7778
Client.Insecure = True
7879

80+
Curl = Client.PrepareCurlRequest(Request)
7981
.Expect(Curl).ToMatch "--insecure"
8082
#Else
8183
' (Mac-only)
@@ -245,8 +247,6 @@ Public Function Specs() As SpecSuite
245247
Request.AddHeader "custom", "Howdy!"
246248
Request.AddCookie "test-cookie", "howdy"
247249

248-
Dim Curl As String
249-
250250
Curl = Client.PrepareCurlRequest(Request)
251251
.Expect(Curl).ToMatch "http://localhost:3000/text?type=message"
252252
.Expect(Curl).ToMatch "-X POST"

0 commit comments

Comments
 (0)