Skip to content

Commit f22d813

Browse files
author
Inbal Tako
committed
Align tests
1 parent cca5e13 commit f22d813

3 files changed

Lines changed: 8 additions & 12 deletions

File tree

spec/spec_api_manager.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,9 @@
6464
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
6565
'Authorization'=>'YOUR_API_KEY',
6666
'Content-Type'=>'application/json',
67-
'Sn-Version'=>'0.1.22',
67+
'Sn-Version'=>'0.1.23',
6868
'User-Agent'=>'SecureNative-ruby'
69-
}).
70-
to_return(status: 200, body: "", headers: {})
71-
69+
}).to_return(status: 200, body: "", headers: {})
7270

7371
event_manager = EventManager.new(options)
7472
event_manager.start_event_persist

spec/spec_event_manager.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def initialize
3333
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
3434
'Authorization'=>'YOUR_API_KEY',
3535
'Content-Type'=>'application/json',
36-
'Sn-Version'=>'0.1.22',
36+
'Sn-Version'=>'0.1.23',
3737
'User-Agent'=>'SecureNative-ruby'
3838
}).
3939
to_return(status: 200, body: "", headers: {})
@@ -58,7 +58,7 @@ def initialize
5858
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
5959
'Authorization'=>'YOUR_API_KEY',
6060
'Content-Type'=>'application/json',
61-
'Sn-Version'=>'0.1.22',
61+
'Sn-Version'=>'0.1.23',
6262
'User-Agent'=>'SecureNative-ruby'
6363
}).
6464
to_return(status: 401, body: "", headers: {})
@@ -80,7 +80,7 @@ def initialize
8080
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
8181
'Authorization'=>'YOUR_API_KEY',
8282
'Content-Type'=>'application/json',
83-
'Sn-Version'=>'0.1.22',
83+
'Sn-Version'=>'0.1.23',
8484
'User-Agent'=>'SecureNative-ruby'
8585
}).
8686
to_return(status: 500, body: "", headers: {})

spec/spec_securenative_http_client.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,15 @@
1010
options = ConfigurationBuilder.new(api_key: 'YOUR_API_KEY', api_url: 'https://api.securenative-stg.com/collector/api/v1')
1111

1212
stub_request(:post, "https://api.securenative-stg.com/collector/api/v1/track").
13-
with(
14-
body: "{\"event\": \"SOME_EVENT_NAME\"}",
13+
with(body: "{\"event\": \"SOME_EVENT_NAME\"}",
1514
headers: {
1615
'Accept'=>'*/*',
1716
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
1817
'Authorization'=>'YOUR_API_KEY',
1918
'Content-Type'=>'application/json',
20-
'Sn-Version'=>'0.1.22',
19+
'Sn-Version'=>'0.1.23',
2120
'User-Agent'=>'SecureNative-ruby'
22-
}).
23-
to_return(status: 200, body: "", headers: {})
21+
}).to_return(status: 200, body: "", headers: {})
2422
client = SecureNativeHttpClient.new(options)
2523
payload = '{"event": "SOME_EVENT_NAME"}'
2624

0 commit comments

Comments
 (0)