sendgrid-ruby 4.0.3 → 4.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ef92c3e502bb4626c6e5ce0a7d9f2476e5f2b66
4
- data.tar.gz: 5639c8038e93be999adef7442882d5cb909383a1
3
+ metadata.gz: 3b55be9596fe7e0909a03c49cb9e698d922a1a39
4
+ data.tar.gz: 06a368c6b3602362d1efd92570797f284c24fd7a
5
5
  SHA512:
6
- metadata.gz: 624cbe2ff6f82eaf86dd6dcd7899ce677d747e8908814b6b96211b0a6eabe8e9e57be3bb492c585f1a0003bafe2bea58c490f899738421cb2ccd38076a21f517
7
- data.tar.gz: 111671b61535cf1df87c493536f89949890fa870cec5ae31da16b03cc1278533480560f2592ce7e58e6b4dd00af9efedefc53136870ebca1b83a1bcdb90df5b7
6
+ metadata.gz: a03a6e57f9ba993d5ca038bb5a270821dde415188f4b0c38bb7454cda68c7b1136b49b8dec624eda22d389e12c2fa9ed7669b40f4c743022d6a6d34927f59702
7
+ data.tar.gz: ae5d547a542b5ca06b0086407f50ab67cd0b103a956ad77a4d4e9efb0a3e6344651420025db6bd2e8fcb53d293cbecb733d299b1ac201b657ad41e4356806a7e
@@ -1,6 +1,11 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [4.0.4] - 2016-09-15 ##
5
+ ### Fixed
6
+ - Pull #72: [remove unnecessary ruby 2.2 requirement](https://github.com/sendgrid/sendgrid-ruby/pull/72)
7
+ - Thanks to [Billy Watson](https://github.com/billywatson) for the pull request!
8
+
4
9
  ## [4.0.3] - 2016-08-24 ##
5
10
  ### Added
6
11
  - Table of Contents in the README
@@ -64,16 +64,37 @@ We welcome direct contributions to the sendgrid-ruby code base. Thank you!
64
64
 
65
65
  ##### Prerequisites #####
66
66
 
67
- - Ruby version 2.2
67
+ - Ruby 2.1+
68
68
  - [ruby_http_client](https://github.com/sendgrid/ruby-http-client)
69
69
 
70
+
70
71
  ##### Initial setup: #####
71
72
 
72
- ```bash
73
- git clone https://github.com/sendgrid/sendgrid-ruby.git
74
- cd sendgrid-ruby
75
- bundle install
76
- ```
73
+ 1. Clone the project
74
+
75
+ ```bash
76
+ git clone https://github.com/sendgrid/sendgrid-ruby.git
77
+ cd sendgrid-ruby
78
+ ```
79
+
80
+ 1. Install bundler and bundle
81
+
82
+ ```bash
83
+ bundle install
84
+ ```
85
+
86
+ 1. Download [prism](https://stoplight.io/prism/) for your platform ([Mac OS X](https://github.com/stoplightio/prism/releases/download/v0.1.5/prism_darwin_amd64)) and save the binary to the sendgrid-ruby directory (or any directory you would like. The sendgrid-ruby directory is chosen mostly for convenience.)
87
+ 1. Add execute permissions
88
+
89
+ ```bash
90
+ chmod +x prism
91
+ ```
92
+ 1. Download the [prism spec for sendgrid](https://api.stoplight.io/v1/versions/563a5309daad691100fb05af/export/stoplight.json) and save it to the same directory
93
+ 1. In a separate terminal, cd into the directory you chose for prism and start the sendgrid local server which the tests will use.
94
+
95
+ ```bash
96
+ ./prism run --mock --list --spec stoplight.json
97
+ ```
77
98
 
78
99
  ## Environment Variables
79
100
 
@@ -199,4 +220,4 @@ Please run your code through:
199
220
  7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
200
221
  with a clear title and description against the `master` branch. All tests must be passing before we will review the PR.
201
222
 
202
- If you have any additional questions, please feel free to [email](mailto:dx@sendgrid.com) us or create an issue in this repo.
223
+ If you have any additional questions, please feel free to [email](mailto:dx@sendgrid.com) us or create an issue in this repo.
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'ruby_http_client'
3
+ gemspec
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  [![Travis Badge](https://travis-ci.org/sendgrid/sendgrid-ruby.svg?branch=master)](https://travis-ci.org/sendgrid/sendgrid-ruby)
2
2
 
3
+ Please see our announcement regarding [breaking changes](https://github.com/sendgrid/sendgrid-ruby/issues/94). Your support is appreciated!
3
4
 
4
5
  **This library allows you to quickly and easily use the SendGrid Web API v3 via Ruby.**
5
6
 
@@ -11,11 +12,24 @@ Please browse the rest of this README for further detail.
11
12
 
12
13
  We appreciate your continued support, thank you!
13
14
 
15
+ # Table of Contents
16
+
17
+ * [Installation](#installation)
18
+ * [Quick Start](#quick_start)
19
+ * [Usage](#usage)
20
+ * [Use Cases](#use_cases)
21
+ * [Announcements](#announcements)
22
+ * [Roadmap](#roadmap)
23
+ * [How to Contribute](#contribute)
24
+ * [Troubleshooting](#troubleshooting)
25
+ * [About](#about)
26
+
27
+ <a name="installation"></a>
14
28
  # Installation
15
29
 
16
30
  ## Prerequisites
17
31
 
18
- - Ruby version 2.2
32
+ - Ruby version 2.1+
19
33
  - The SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-ruby)
20
34
 
21
35
  ## Setup Environment Variables
@@ -51,6 +65,7 @@ gem install sendgrid-ruby
51
65
 
52
66
  - [Ruby-HTTP-Client](https://github.com/sendgrid/ruby-http-client)
53
67
 
68
+ <a name="quick_start"></a>
54
69
  # Quick Start
55
70
 
56
71
  ## Hello Email
@@ -83,6 +98,9 @@ For more complex scenarios, please do not use the above constructor and instead
83
98
  The following is the minimum needed code to send an email without the /mail/send Helper ([here](https://github.com/sendgrid/sendgrid-ruby/blob/master/examples/mail/mail.rb#L26) is a full example):
84
99
 
85
100
  ```ruby
101
+ require 'sendgrid-ruby'
102
+ include SendGrid
103
+
86
104
  data = JSON.parse('{
87
105
  "personalizations": [
88
106
  {
@@ -104,6 +122,7 @@ data = JSON.parse('{
104
122
  }
105
123
  ]
106
124
  }')
125
+ sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])
107
126
  response = sg.client.mail._("send").post(request_body: data)
108
127
  puts response.status_code
109
128
  puts response.body
@@ -132,6 +151,7 @@ puts response.body
132
151
  puts response.headers
133
152
  ```
134
153
 
154
+ <a name="usage"></a>
135
155
  # Usage
136
156
 
137
157
  - [SendGrid Docs](https://sendgrid.com/docs/API_Reference/index.html)
@@ -140,14 +160,24 @@ puts response.headers
140
160
  - [How-to: Migration from v2 to v3](https://sendgrid.com/docs/Classroom/Send/v3_Mail_Send/how_to_migrate_from_v2_to_v3_mail_send.html)
141
161
  - [v3 Web API Mail Send Helper](https://github.com/sendgrid/sendgrid-python/tree/master/sendgrid/helpers/mail) - build a request object payload for a v3 /mail/send API call.
142
162
 
163
+ <a name="use_cases">
164
+ # Use Cases
165
+
166
+ [Examples of common API use cases](https://github.com/sendgrid/sendgrid-ruby/blob/master/USE_CASES.md), such as how to send an email with a transactional template.
167
+
168
+ <a name="announcements"></a>
143
169
  # Announcements
144
170
 
171
+ Please see our announcement regarding [breaking changes](https://github.com/sendgrid/sendgrid-ruby/issues/94). Your support is appreciated!
172
+
145
173
  All updates to this library is documented in our [CHANGELOG](https://github.com/sendgrid/sendgrid-ruby/blob/master/CHANGELOG.md) and [releases](https://github.com/sendgrid/sendgrid-ruby/releases).
146
174
 
175
+ <a name="roadmap"></a>
147
176
  # Roadmap
148
177
 
149
178
  If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/sendgrid/sendgrid-ruby/issues) and [pull requests](https://github.com/sendgrid/sendgrid-ruby/pulls). We would love to hear your feedback.
150
179
 
180
+ <a name="contribute"></a>
151
181
  # How to Contribute
152
182
 
153
183
  We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/sendgrid/sendgrid-ruby/tree/master/CONTRIBUTING.md) guide for details.
@@ -157,10 +187,12 @@ We encourage contribution to our libraries (you might even score some nifty swag
157
187
  - [Sign the CLA to Create a Pull Request](https://github.com/sendgrid/sendgrid-ruby/tree/master/CONTRIBUTING.md#cla)
158
188
  - [Improvements to the Codebase](https://github.com/sendgrid/sendgrid-ruby/tree/master/CONTRIBUTING.md#improvements_to_the_codebase)
159
189
 
190
+ <a name="troubleshooting"></a>
160
191
  # Troubleshooting
161
192
 
162
193
  Please see our [troubleshooting guide](https://github.com/sendgrid/sendgrid-ruby/blob/master/TROUBLESHOOTING.md) for common library issues.
163
194
 
195
+ <a name="about"></a>
164
196
  # About
165
197
 
166
198
  sendgrid-ruby is guided and supported by the SendGrid [Developer Experience Team](mailto:dx@sendgrid.com).
@@ -0,0 +1,113 @@
1
+ This documentation provides examples for specific use cases. Please [open an issue](https://github.com/sendgrid/sendgrid-ruby/issues) or make a pull request for any use cases you would like us to document here. Thank you!
2
+
3
+ # Table of Contents
4
+
5
+ * [Transactional Templates](#transactional_templates)
6
+
7
+ <a name="transactional_templates"></a>
8
+ # Transactional Templates
9
+
10
+ For this example, we assume you have created a [transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). Following is the template content we used for testing.
11
+
12
+ Template ID (replace with your own):
13
+
14
+ ```text
15
+ 13b8f94f-bcae-4ec6-b752-70d6cb59f932
16
+ ```
17
+
18
+ Email Subject:
19
+
20
+ ```text
21
+ <%subject%>
22
+ ```
23
+
24
+ Template Body:
25
+
26
+ ```html
27
+ <html>
28
+ <head>
29
+ <title></title>
30
+ </head>
31
+ <body>
32
+ Hello -name-,
33
+ <br /><br/>
34
+ I'm glad you are trying out the template feature!
35
+ <br /><br/>
36
+ <%body%>
37
+ <br /><br/>
38
+ I hope you are having a great day in -city- :)
39
+ <br /><br/>
40
+ </body>
41
+ </html>
42
+ ```
43
+
44
+ ## With Mail Helper Class
45
+
46
+ ```ruby
47
+ require 'sendgrid-ruby'
48
+ include SendGrid
49
+
50
+ mail = Mail.new
51
+ mail.from = Email.new(email: 'test@example.com')
52
+ mail.subject = 'I\'m replacing the subject tag'
53
+ personalization = Personalization.new
54
+ personalization.to = Email.new(email: 'test@example.com')
55
+ personalization.substitutions = Substitution.new(key: '-name-', value: 'Example User')
56
+ personalization.substitutions = Substitution.new(key: '-city-', value: 'Denver')
57
+ mail.personalizations = personalization
58
+ mail.contents = Content.new(type: 'text/html', value: 'I\'m replacing the <strong>body tag</strong>')
59
+ mail.template_id = '13b8f94f-bcae-4ec6-b752-70d6cb59f932'
60
+
61
+ sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])
62
+ begin
63
+ response = sg.client.mail._("send").post(request_body: mail.to_json)
64
+ rescue Exception => e
65
+ puts e.message
66
+ end
67
+ puts response.status_code
68
+ puts response.body
69
+ puts response.headers
70
+ ```
71
+
72
+ ## Without Mail Helper Class
73
+
74
+ ```ruby
75
+ require 'sendgrid-ruby'
76
+ include SendGrid
77
+
78
+ data = JSON.parse('{
79
+ "personalizations": [
80
+ {
81
+ "to": [
82
+ {
83
+ "email": "test@example.com"
84
+ }
85
+ ],
86
+ "substitutions": {
87
+ "-name-": "Example User",
88
+ "-city-": "Denver"
89
+ },
90
+ "subject": "I\'m replacing the subject tag"
91
+ }
92
+ ],
93
+ "from": {
94
+ "email": "test@example.com"
95
+ },
96
+ "content": [
97
+ {
98
+ "type": "text/html",
99
+ "value": "I\'m replacing the <strong>body tag</strong>"
100
+ }
101
+ ],
102
+ "template_id": "13b8f94f-bcae-4ec6-b752-70d6cb59f932"
103
+ }')
104
+ sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])
105
+ begin
106
+ response = sg.client.mail._("send").post(request_body: data)
107
+ rescue Exception => e
108
+ puts e.message
109
+ end
110
+ puts response.status_code
111
+ puts response.body
112
+ puts response.headers
113
+ ```
@@ -29,7 +29,7 @@ def kitchen_sink
29
29
  personalization.cc = Email.new(email: 'test4@example.com', name: 'Example User')
30
30
  personalization.bcc = Email.new(email: 'test5@example.com', name: 'Example User')
31
31
  personalization.bcc = Email.new(email: 'test6@example.com', name: 'Example User')
32
- personalization.subject = 'Hello World from the Personalized SendGrid Python Library'
32
+ personalization.subject = 'Hello World from the Personalized SendGrid Ruby Library'
33
33
  personalization.headers = Header.new(key: 'X-Test', value: 'True')
34
34
  personalization.headers = Header.new(key: 'X-Mock', value: 'False')
35
35
  personalization.substitutions = Substitution.new(key: '%name%', value: 'Example User')
@@ -46,7 +46,7 @@ def kitchen_sink
46
46
  personalization2.cc = Email.new(email: 'test4@example.com', name: 'Example User')
47
47
  personalization2.bcc = Email.new(email: 'test5@example.com', name: 'Example User')
48
48
  personalization2.bcc = Email.new(email: 'test6@example.com', name: 'Example User')
49
- personalization2.subject = 'Hello World from the Personalized SendGrid Python Library'
49
+ personalization2.subject = 'Hello World from the Personalized SendGrid Ruby Library'
50
50
  personalization2.headers = Header.new(key: 'X-Test', value: 'True')
51
51
  personalization2.headers = Header.new(key: 'X-Mock', value: 'False')
52
52
  personalization2.substitutions = Substitution.new(key: '%name%', value: 'Example User')
@@ -1,3 +1,3 @@
1
1
  module SendGrid
2
- VERSION = '4.0.3'
2
+ VERSION = '4.0.4'
3
3
  end
@@ -12,7 +12,6 @@ Gem::Specification.new do |spec|
12
12
  spec.description = 'Interact with SendGrids API in native Ruby'
13
13
  spec.homepage = 'http://github.com/sendgrid/sendgrid-ruby'
14
14
  spec.license = 'MIT'
15
- spec.required_ruby_version = '>= 2.2'
16
15
  spec.files = `git ls-files -z`.split("\x0")
17
16
  spec.executables = spec.files.grep(/^bin/) { |f| File.basename(f) }
18
17
  spec.test_files = spec.files.grep(/^(test|spec|features)/)
@@ -20,4 +19,5 @@ Gem::Specification.new do |spec|
20
19
 
21
20
  spec.add_dependency 'ruby_http_client', '~> 3.0.0'
22
21
  spec.add_development_dependency 'rake', '~> 0'
22
+ spec.add_development_dependency 'minitest'
23
23
  end
@@ -1,8 +1,9 @@
1
1
  require_relative '../../lib/sendgrid-ruby.rb'
2
2
  require 'ruby_http_client'
3
3
  require 'minitest/autorun'
4
+ require 'minitest/unit'
4
5
 
5
- class TestAPI < Minitest::Test
6
+ class TestAPI < MiniTest::Test
6
7
  def setup
7
8
  if ENV['TRAVIS']
8
9
  host = ENV['MOCK_HOST']
@@ -30,15 +31,17 @@ class TestAPI < Minitest::Test
30
31
  ')
31
32
  assert_equal(test_headers, sg.request_headers)
32
33
  assert_equal("v3", sg.version)
33
- assert_equal("4.0.3", SendGrid::VERSION)
34
+ assert_equal("4.0.4", SendGrid::VERSION)
34
35
  assert_instance_of(SendGrid::Client, sg.client)
35
36
  end
36
37
 
37
38
  def test_access_settings_activity_get
38
39
  params = JSON.parse('{"limit": 1}')
39
40
  headers = JSON.parse('{"X-Mock": 200}')
41
+
40
42
  response = @sg.client.access_settings.activity.get(query_params: params, request_headers: headers)
41
- self.assert_equal(response.status_code, "200")
43
+
44
+ self.assert_equal('200', response.status_code)
42
45
  end
43
46
 
44
47
  def test_access_settings_whitelist_post
@@ -56,14 +59,18 @@ class TestAPI < Minitest::Test
56
59
  ]
57
60
  }')
58
61
  headers = JSON.parse('{"X-Mock": 201}')
62
+
59
63
  response = @sg.client.access_settings.whitelist.post(request_body: data, request_headers: headers)
60
- self.assert_equal(response.status_code, "201")
64
+
65
+ self.assert_equal('201', response.status_code)
61
66
  end
62
67
 
63
68
  def test_access_settings_whitelist_get
64
69
  headers = JSON.parse('{"X-Mock": 200}')
70
+
65
71
  response = @sg.client.access_settings.whitelist.get(request_headers: headers)
66
- self.assert_equal(response.status_code, "200")
72
+
73
+ self.assert_equal('200', response.status_code)
67
74
  end
68
75
 
69
76
  def test_access_settings_whitelist_delete
@@ -75,22 +82,28 @@ class TestAPI < Minitest::Test
75
82
  ]
76
83
  }')
77
84
  headers = JSON.parse('{"X-Mock": 204}')
85
+
78
86
  response = @sg.client.access_settings.whitelist.delete(request_body: data, request_headers: headers)
79
- self.assert_equal(response.status_code, "204")
87
+
88
+ self.assert_equal('204', response.status_code)
80
89
  end
81
90
 
82
91
  def test_access_settings_whitelist__rule_id__get
83
92
  rule_id = "test_url_param"
84
93
  headers = JSON.parse('{"X-Mock": 200}')
94
+
85
95
  response = @sg.client.access_settings.whitelist._(rule_id).get(request_headers: headers)
86
- self.assert_equal(response.status_code, "200")
96
+
97
+ self.assert_equal('200', response.status_code)
87
98
  end
88
99
 
89
100
  def test_access_settings_whitelist__rule_id__delete
90
101
  rule_id = "test_url_param"
91
102
  headers = JSON.parse('{"X-Mock": 204}')
103
+
92
104
  response = @sg.client.access_settings.whitelist._(rule_id).delete(request_headers: headers)
93
- self.assert_equal(response.status_code, "204")
105
+
106
+ self.assert_equal('204', response.status_code)
94
107
  end
95
108
 
96
109
  def test_alerts_post
@@ -100,14 +113,18 @@ class TestAPI < Minitest::Test
100
113
  "type": "stats_notification"
101
114
  }')
102
115
  headers = JSON.parse('{"X-Mock": 201}')
116
+
103
117
  response = @sg.client.alerts.post(request_body: data, request_headers: headers)
104
- self.assert_equal(response.status_code, "201")
118
+
119
+ self.assert_equal('201', response.status_code)
105
120
  end
106
121
 
107
122
  def test_alerts_get
108
123
  headers = JSON.parse('{"X-Mock": 200}')
124
+
109
125
  response = @sg.client.alerts.get(request_headers: headers)
110
- self.assert_equal(response.status_code, "200")
126
+
127
+ self.assert_equal('200', response.status_code)
111
128
  end
112
129
 
113
130
  def test_alerts__alert_id__patch
@@ -116,22 +133,28 @@ class TestAPI < Minitest::Test
116
133
  }')
117
134
  alert_id = "test_url_param"
118
135
  headers = JSON.parse('{"X-Mock": 200}')
136
+
119
137
  response = @sg.client.alerts._(alert_id).patch(request_body: data, request_headers: headers)
120
- self.assert_equal(response.status_code, "200")
138
+
139
+ self.assert_equal('200', response.status_code)
121
140
  end
122
141
 
123
142
  def test_alerts__alert_id__get
124
143
  alert_id = "test_url_param"
125
144
  headers = JSON.parse('{"X-Mock": 200}')
145
+
126
146
  response = @sg.client.alerts._(alert_id).get(request_headers: headers)
127
- self.assert_equal(response.status_code, "200")
147
+
148
+ self.assert_equal('200', response.status_code)
128
149
  end
129
150
 
130
151
  def test_alerts__alert_id__delete
131
152
  alert_id = "test_url_param"
132
153
  headers = JSON.parse('{"X-Mock": 204}')
154
+
133
155
  response = @sg.client.alerts._(alert_id).delete(request_headers: headers)
134
- self.assert_equal(response.status_code, "204")
156
+
157
+ self.assert_equal('204', response.status_code)
135
158
  end
136
159
 
137
160
  def test_api_keys_post
@@ -145,15 +168,19 @@ class TestAPI < Minitest::Test
145
168
  ]
146
169
  }')
147
170
  headers = JSON.parse('{"X-Mock": 201}')
171
+
148
172
  response = @sg.client.api_keys.post(request_body: data, request_headers: headers)
149
- self.assert_equal(response.status_code, "201")
173
+
174
+ self.assert_equal('201', response.status_code)
150
175
  end
151
176
 
152
177
  def test_api_keys_get
153
178
  params = JSON.parse('{"limit": 1}')
154
179
  headers = JSON.parse('{"X-Mock": 200}')
180
+
155
181
  response = @sg.client.api_keys.get(query_params: params, request_headers: headers)
156
- self.assert_equal(response.status_code, "200")
182
+
183
+ self.assert_equal('200', response.status_code)
157
184
  end
158
185
 
159
186
  def test_api_keys__api_key_id__put
@@ -166,8 +193,10 @@ class TestAPI < Minitest::Test
166
193
  }')
167
194
  api_key_id = "test_url_param"
168
195
  headers = JSON.parse('{"X-Mock": 200}')
196
+
169
197
  response = @sg.client.api_keys._(api_key_id).put(request_body: data, request_headers: headers)
170
- self.assert_equal(response.status_code, "200")
198
+
199
+ self.assert_equal('200', response.status_code)
171
200
  end
172
201
 
173
202
  def test_api_keys__api_key_id__patch
@@ -176,22 +205,28 @@ class TestAPI < Minitest::Test
176
205
  }')
177
206
  api_key_id = "test_url_param"
178
207
  headers = JSON.parse('{"X-Mock": 200}')
208
+
179
209
  response = @sg.client.api_keys._(api_key_id).patch(request_body: data, request_headers: headers)
180
- self.assert_equal(response.status_code, "200")
210
+
211
+ self.assert_equal('200', response.status_code)
181
212
  end
182
213
 
183
214
  def test_api_keys__api_key_id__get
184
215
  api_key_id = "test_url_param"
185
216
  headers = JSON.parse('{"X-Mock": 200}')
217
+
186
218
  response = @sg.client.api_keys._(api_key_id).get(request_headers: headers)
187
- self.assert_equal(response.status_code, "200")
219
+
220
+ self.assert_equal('200', response.status_code)
188
221
  end
189
222
 
190
223
  def test_api_keys__api_key_id__delete
191
224
  api_key_id = "test_url_param"
192
225
  headers = JSON.parse('{"X-Mock": 204}')
226
+
193
227
  response = @sg.client.api_keys._(api_key_id).delete(request_headers: headers)
194
- self.assert_equal(response.status_code, "204")
228
+
229
+ self.assert_equal('204', response.status_code)
195
230
  end
196
231
 
197
232
  def test_asm_groups_post
@@ -201,15 +236,19 @@ class TestAPI < Minitest::Test
201
236
  "name": "Product Suggestions"
202
237
  }')
203
238
  headers = JSON.parse('{"X-Mock": 201}')
239
+
204
240
  response = @sg.client.asm.groups.post(request_body: data, request_headers: headers)
205
- self.assert_equal(response.status_code, "201")
241
+
242
+ self.assert_equal('201', response.status_code)
206
243
  end
207
244
 
208
245
  def test_asm_groups_get
209
246
  params = JSON.parse('{"id": 1}')
210
247
  headers = JSON.parse('{"X-Mock": 200}')
248
+
211
249
  response = @sg.client.asm.groups.get(query_params: params, request_headers: headers)
212
- self.assert_equal(response.status_code, "200")
250
+
251
+ self.assert_equal('200', response.status_code)
213
252
  end
214
253
 
215
254
  def test_asm_groups__group_id__patch
@@ -220,22 +259,28 @@ class TestAPI < Minitest::Test
220
259
  }')
221
260
  group_id = "test_url_param"
222
261
  headers = JSON.parse('{"X-Mock": 201}')
262
+
223
263
  response = @sg.client.asm.groups._(group_id).patch(request_body: data, request_headers: headers)
224
- self.assert_equal(response.status_code, "201")
264
+
265
+ self.assert_equal('201', response.status_code)
225
266
  end
226
267
 
227
268
  def test_asm_groups__group_id__get
228
269
  group_id = "test_url_param"
229
270
  headers = JSON.parse('{"X-Mock": 200}')
271
+
230
272
  response = @sg.client.asm.groups._(group_id).get(request_headers: headers)
231
- self.assert_equal(response.status_code, "200")
273
+
274
+ self.assert_equal('200', response.status_code)
232
275
  end
233
276
 
234
277
  def test_asm_groups__group_id__delete
235
278
  group_id = "test_url_param"
236
279
  headers = JSON.parse('{"X-Mock": 204}')
280
+
237
281
  response = @sg.client.asm.groups._(group_id).delete(request_headers: headers)
238
- self.assert_equal(response.status_code, "204")
282
+
283
+ self.assert_equal('204', response.status_code)
239
284
  end
240
285
 
241
286
  def test_asm_groups__group_id__suppressions_post
@@ -247,15 +292,19 @@ class TestAPI < Minitest::Test
247
292
  }')
248
293
  group_id = "test_url_param"
249
294
  headers = JSON.parse('{"X-Mock": 201}')
295
+
250
296
  response = @sg.client.asm.groups._(group_id).suppressions.post(request_body: data, request_headers: headers)
251
- self.assert_equal(response.status_code, "201")
297
+
298
+ self.assert_equal('201', response.status_code)
252
299
  end
253
300
 
254
301
  def test_asm_groups__group_id__suppressions_get
255
302
  group_id = "test_url_param"
256
303
  headers = JSON.parse('{"X-Mock": 200}')
304
+
257
305
  response = @sg.client.asm.groups._(group_id).suppressions.get(request_headers: headers)
258
- self.assert_equal(response.status_code, "200")
306
+
307
+ self.assert_equal('200', response.status_code)
259
308
  end
260
309
 
261
310
  def test_asm_groups__group_id__suppressions_search_post
@@ -268,22 +317,28 @@ class TestAPI < Minitest::Test
268
317
  }')
269
318
  group_id = "test_url_param"
270
319
  headers = JSON.parse('{"X-Mock": 200}')
320
+
271
321
  response = @sg.client.asm.groups._(group_id).suppressions.search.post(request_body: data, request_headers: headers)
272
- self.assert_equal(response.status_code, "200")
322
+
323
+ self.assert_equal('200', response.status_code)
273
324
  end
274
325
 
275
326
  def test_asm_groups__group_id__suppressions__email__delete
276
327
  group_id = "test_url_param"
277
328
  email = "test_url_param"
278
329
  headers = JSON.parse('{"X-Mock": 204}')
330
+
279
331
  response = @sg.client.asm.groups._(group_id).suppressions._(email).delete(request_headers: headers)
280
- self.assert_equal(response.status_code, "204")
332
+
333
+ self.assert_equal('204', response.status_code)
281
334
  end
282
335
 
283
336
  def test_asm_suppressions_get
284
337
  headers = JSON.parse('{"X-Mock": 200}')
338
+
285
339
  response = @sg.client.asm.suppressions.get(request_headers: headers)
286
- self.assert_equal(response.status_code, "200")
340
+
341
+ self.assert_equal('200', response.status_code)
287
342
  end
288
343
 
289
344
  def test_asm_suppressions_global_post
@@ -294,36 +349,46 @@ class TestAPI < Minitest::Test
294
349
  ]
295
350
  }')
296
351
  headers = JSON.parse('{"X-Mock": 201}')
352
+
297
353
  response = @sg.client.asm.suppressions.global.post(request_body: data, request_headers: headers)
298
- self.assert_equal(response.status_code, "201")
354
+
355
+ self.assert_equal('201', response.status_code)
299
356
  end
300
357
 
301
358
  def test_asm_suppressions_global__email__get
302
359
  email = "test_url_param"
303
360
  headers = JSON.parse('{"X-Mock": 200}')
361
+
304
362
  response = @sg.client.asm.suppressions.global._(email).get(request_headers: headers)
305
- self.assert_equal(response.status_code, "200")
363
+
364
+ self.assert_equal('200', response.status_code)
306
365
  end
307
366
 
308
367
  def test_asm_suppressions_global__email__delete
309
368
  email = "test_url_param"
310
369
  headers = JSON.parse('{"X-Mock": 204}')
370
+
311
371
  response = @sg.client.asm.suppressions.global._(email).delete(request_headers: headers)
312
- self.assert_equal(response.status_code, "204")
372
+
373
+ self.assert_equal('204', response.status_code)
313
374
  end
314
375
 
315
376
  def test_asm_suppressions__email__get
316
377
  email = "test_url_param"
317
378
  headers = JSON.parse('{"X-Mock": 200}')
379
+
318
380
  response = @sg.client.asm.suppressions._(email).get(request_headers: headers)
319
- self.assert_equal(response.status_code, "200")
381
+
382
+ self.assert_equal('200', response.status_code)
320
383
  end
321
384
 
322
385
  def test_browsers_stats_get
323
386
  params = JSON.parse('{"end_date": "2016-04-01", "aggregated_by": "day", "browsers": "test_string", "limit": "test_string", "offset": "test_string", "start_date": "2016-01-01"}')
324
387
  headers = JSON.parse('{"X-Mock": 200}')
388
+
325
389
  response = @sg.client.browsers.stats.get(query_params: params, request_headers: headers)
326
- self.assert_equal(response.status_code, "200")
390
+
391
+ self.assert_equal('200', response.status_code)
327
392
  end
328
393
 
329
394
  def test_campaigns_post
@@ -348,15 +413,19 @@ class TestAPI < Minitest::Test
348
413
  "title": "March Newsletter"
349
414
  }')
350
415
  headers = JSON.parse('{"X-Mock": 201}')
416
+
351
417
  response = @sg.client.campaigns.post(request_body: data, request_headers: headers)
352
- self.assert_equal(response.status_code, "201")
418
+
419
+ self.assert_equal('201', response.status_code)
353
420
  end
354
421
 
355
422
  def test_campaigns_get
356
423
  params = JSON.parse('{"limit": 1, "offset": 1}')
357
424
  headers = JSON.parse('{"X-Mock": 200}')
425
+
358
426
  response = @sg.client.campaigns.get(query_params: params, request_headers: headers)
359
- self.assert_equal(response.status_code, "200")
427
+
428
+ self.assert_equal('200', response.status_code)
360
429
  end
361
430
 
362
431
  def test_campaigns__campaign_id__patch
@@ -371,22 +440,28 @@ class TestAPI < Minitest::Test
371
440
  }')
372
441
  campaign_id = "test_url_param"
373
442
  headers = JSON.parse('{"X-Mock": 200}')
443
+
374
444
  response = @sg.client.campaigns._(campaign_id).patch(request_body: data, request_headers: headers)
375
- self.assert_equal(response.status_code, "200")
445
+
446
+ self.assert_equal('200', response.status_code)
376
447
  end
377
448
 
378
449
  def test_campaigns__campaign_id__get
379
450
  campaign_id = "test_url_param"
380
451
  headers = JSON.parse('{"X-Mock": 200}')
452
+
381
453
  response = @sg.client.campaigns._(campaign_id).get(request_headers: headers)
382
- self.assert_equal(response.status_code, "200")
454
+
455
+ self.assert_equal('200', response.status_code)
383
456
  end
384
457
 
385
458
  def test_campaigns__campaign_id__delete
386
459
  campaign_id = "test_url_param"
387
460
  headers = JSON.parse('{"X-Mock": 204}')
461
+
388
462
  response = @sg.client.campaigns._(campaign_id).delete(request_headers: headers)
389
- self.assert_equal(response.status_code, "204")
463
+
464
+ self.assert_equal('204', response.status_code)
390
465
  end
391
466
 
392
467
  def test_campaigns__campaign_id__schedules_patch
@@ -395,8 +470,10 @@ class TestAPI < Minitest::Test
395
470
  }')
396
471
  campaign_id = "test_url_param"
397
472
  headers = JSON.parse('{"X-Mock": 200}')
473
+
398
474
  response = @sg.client.campaigns._(campaign_id).schedules.patch(request_body: data, request_headers: headers)
399
- self.assert_equal(response.status_code, "200")
475
+
476
+ self.assert_equal('200', response.status_code)
400
477
  end
401
478
 
402
479
  def test_campaigns__campaign_id__schedules_post
@@ -405,29 +482,37 @@ class TestAPI < Minitest::Test
405
482
  }')
406
483
  campaign_id = "test_url_param"
407
484
  headers = JSON.parse('{"X-Mock": 201}')
485
+
408
486
  response = @sg.client.campaigns._(campaign_id).schedules.post(request_body: data, request_headers: headers)
409
- self.assert_equal(response.status_code, "201")
487
+
488
+ self.assert_equal('201', response.status_code)
410
489
  end
411
490
 
412
491
  def test_campaigns__campaign_id__schedules_get
413
492
  campaign_id = "test_url_param"
414
493
  headers = JSON.parse('{"X-Mock": 200}')
494
+
415
495
  response = @sg.client.campaigns._(campaign_id).schedules.get(request_headers: headers)
416
- self.assert_equal(response.status_code, "200")
496
+
497
+ self.assert_equal('200', response.status_code)
417
498
  end
418
499
 
419
500
  def test_campaigns__campaign_id__schedules_delete
420
501
  campaign_id = "test_url_param"
421
502
  headers = JSON.parse('{"X-Mock": 204}')
503
+
422
504
  response = @sg.client.campaigns._(campaign_id).schedules.delete(request_headers: headers)
423
- self.assert_equal(response.status_code, "204")
505
+
506
+ self.assert_equal('204', response.status_code)
424
507
  end
425
508
 
426
509
  def test_campaigns__campaign_id__schedules_now_post
427
510
  campaign_id = "test_url_param"
428
511
  headers = JSON.parse('{"X-Mock": 201}')
512
+
429
513
  response = @sg.client.campaigns._(campaign_id).schedules.now.post(request_headers: headers)
430
- self.assert_equal(response.status_code, "201")
514
+
515
+ self.assert_equal('201', response.status_code)
431
516
  end
432
517
 
433
518
  def test_campaigns__campaign_id__schedules_test_post
@@ -436,44 +521,56 @@ class TestAPI < Minitest::Test
436
521
  }')
437
522
  campaign_id = "test_url_param"
438
523
  headers = JSON.parse('{"X-Mock": 204}')
524
+
439
525
  response = @sg.client.campaigns._(campaign_id).schedules.test.post(request_body: data, request_headers: headers)
440
- self.assert_equal(response.status_code, "204")
526
+
527
+ self.assert_equal('204', response.status_code)
441
528
  end
442
529
 
443
530
  def test_categories_get
444
531
  params = JSON.parse('{"category": "test_string", "limit": 1, "offset": 1}')
445
532
  headers = JSON.parse('{"X-Mock": 200}')
533
+
446
534
  response = @sg.client.categories.get(query_params: params, request_headers: headers)
447
- self.assert_equal(response.status_code, "200")
535
+
536
+ self.assert_equal('200', response.status_code)
448
537
  end
449
538
 
450
539
  def test_categories_stats_get
451
540
  params = JSON.parse('{"end_date": "2016-04-01", "aggregated_by": "day", "limit": 1, "offset": 1, "start_date": "2016-01-01", "categories": "test_string"}')
452
541
  headers = JSON.parse('{"X-Mock": 200}')
542
+
453
543
  response = @sg.client.categories.stats.get(query_params: params, request_headers: headers)
454
- self.assert_equal(response.status_code, "200")
544
+
545
+ self.assert_equal('200', response.status_code)
455
546
  end
456
547
 
457
548
  def test_categories_stats_sums_get
458
549
  params = JSON.parse('{"end_date": "2016-04-01", "aggregated_by": "day", "limit": 1, "sort_by_metric": "test_string", "offset": 1, "start_date": "2016-01-01", "sort_by_direction": "asc"}')
459
550
  headers = JSON.parse('{"X-Mock": 200}')
551
+
460
552
  response = @sg.client.categories.stats.sums.get(query_params: params, request_headers: headers)
461
- self.assert_equal(response.status_code, "200")
553
+
554
+ self.assert_equal('200', response.status_code)
462
555
  end
463
556
 
464
557
  def test_clients_stats_get
465
558
  params = JSON.parse('{"aggregated_by": "day", "start_date": "2016-01-01", "end_date": "2016-04-01"}')
466
559
  headers = JSON.parse('{"X-Mock": 200}')
560
+
467
561
  response = @sg.client.clients.stats.get(query_params: params, request_headers: headers)
468
- self.assert_equal(response.status_code, "200")
562
+
563
+ self.assert_equal('200', response.status_code)
469
564
  end
470
565
 
471
566
  def test_clients__client_type__stats_get
472
567
  params = JSON.parse('{"aggregated_by": "day", "start_date": "2016-01-01", "end_date": "2016-04-01"}')
473
568
  client_type = "test_url_param"
474
569
  headers = JSON.parse('{"X-Mock": 200}')
570
+
475
571
  response = @sg.client.clients._(client_type).stats.get(query_params: params, request_headers: headers)
476
- self.assert_equal(response.status_code, "200")
572
+
573
+ self.assert_equal('200', response.status_code)
477
574
  end
478
575
 
479
576
  def test_contactdb_custom_fields_post
@@ -482,28 +579,36 @@ class TestAPI < Minitest::Test
482
579
  "type": "text"
483
580
  }')
484
581
  headers = JSON.parse('{"X-Mock": 201}')
582
+
485
583
  response = @sg.client.contactdb.custom_fields.post(request_body: data, request_headers: headers)
486
- self.assert_equal(response.status_code, "201")
584
+
585
+ self.assert_equal('201', response.status_code)
487
586
  end
488
587
 
489
588
  def test_contactdb_custom_fields_get
490
589
  headers = JSON.parse('{"X-Mock": 200}')
590
+
491
591
  response = @sg.client.contactdb.custom_fields.get(request_headers: headers)
492
- self.assert_equal(response.status_code, "200")
592
+
593
+ self.assert_equal('200', response.status_code)
493
594
  end
494
595
 
495
596
  def test_contactdb_custom_fields__custom_field_id__get
496
597
  custom_field_id = "test_url_param"
497
598
  headers = JSON.parse('{"X-Mock": 200}')
599
+
498
600
  response = @sg.client.contactdb.custom_fields._(custom_field_id).get(request_headers: headers)
499
- self.assert_equal(response.status_code, "200")
601
+
602
+ self.assert_equal('200', response.status_code)
500
603
  end
501
604
 
502
605
  def test_contactdb_custom_fields__custom_field_id__delete
503
606
  custom_field_id = "test_url_param"
504
607
  headers = JSON.parse('{"X-Mock": 202}')
608
+
505
609
  response = @sg.client.contactdb.custom_fields._(custom_field_id).delete(request_headers: headers)
506
- self.assert_equal(response.status_code, "202")
610
+
611
+ self.assert_equal('202', response.status_code)
507
612
  end
508
613
 
509
614
  def test_contactdb_lists_post
@@ -511,14 +616,18 @@ class TestAPI < Minitest::Test
511
616
  "name": "your list name"
512
617
  }')
513
618
  headers = JSON.parse('{"X-Mock": 201}')
619
+
514
620
  response = @sg.client.contactdb.lists.post(request_body: data, request_headers: headers)
515
- self.assert_equal(response.status_code, "201")
621
+
622
+ self.assert_equal('201', response.status_code)
516
623
  end
517
624
 
518
625
  def test_contactdb_lists_get
519
626
  headers = JSON.parse('{"X-Mock": 200}')
627
+
520
628
  response = @sg.client.contactdb.lists.get(request_headers: headers)
521
- self.assert_equal(response.status_code, "200")
629
+
630
+ self.assert_equal('200', response.status_code)
522
631
  end
523
632
 
524
633
  def test_contactdb_lists_delete
@@ -529,8 +638,10 @@ class TestAPI < Minitest::Test
529
638
  4
530
639
  ]')
531
640
  headers = JSON.parse('{"X-Mock": 204}')
641
+
532
642
  response = @sg.client.contactdb.lists.delete(request_body: data, request_headers: headers)
533
- self.assert_equal(response.status_code, "204")
643
+
644
+ self.assert_equal('204', response.status_code)
534
645
  end
535
646
 
536
647
  def test_contactdb_lists__list_id__patch
@@ -540,24 +651,30 @@ class TestAPI < Minitest::Test
540
651
  params = JSON.parse('{"list_id": 1}')
541
652
  list_id = "test_url_param"
542
653
  headers = JSON.parse('{"X-Mock": 200}')
654
+
543
655
  response = @sg.client.contactdb.lists._(list_id).patch(request_body: data, query_params: params, request_headers: headers)
544
- self.assert_equal(response.status_code, "200")
656
+
657
+ self.assert_equal('200', response.status_code)
545
658
  end
546
659
 
547
660
  def test_contactdb_lists__list_id__get
548
661
  params = JSON.parse('{"list_id": 1}')
549
662
  list_id = "test_url_param"
550
663
  headers = JSON.parse('{"X-Mock": 200}')
664
+
551
665
  response = @sg.client.contactdb.lists._(list_id).get(query_params: params, request_headers: headers)
552
- self.assert_equal(response.status_code, "200")
666
+
667
+ self.assert_equal('200', response.status_code)
553
668
  end
554
669
 
555
670
  def test_contactdb_lists__list_id__delete
556
671
  params = JSON.parse('{"delete_contacts": "true"}')
557
672
  list_id = "test_url_param"
558
673
  headers = JSON.parse('{"X-Mock": 202}')
674
+
559
675
  response = @sg.client.contactdb.lists._(list_id).delete(query_params: params, request_headers: headers)
560
- self.assert_equal(response.status_code, "202")
676
+
677
+ self.assert_equal('202', response.status_code)
561
678
  end
562
679
 
563
680
  def test_contactdb_lists__list_id__recipients_post
@@ -567,24 +684,30 @@ class TestAPI < Minitest::Test
567
684
  ]')
568
685
  list_id = "test_url_param"
569
686
  headers = JSON.parse('{"X-Mock": 201}')
687
+
570
688
  response = @sg.client.contactdb.lists._(list_id).recipients.post(request_body: data, request_headers: headers)
571
- self.assert_equal(response.status_code, "201")
689
+
690
+ self.assert_equal('201', response.status_code)
572
691
  end
573
692
 
574
693
  def test_contactdb_lists__list_id__recipients_get
575
694
  params = JSON.parse('{"page": 1, "page_size": 1, "list_id": 1}')
576
695
  list_id = "test_url_param"
577
696
  headers = JSON.parse('{"X-Mock": 200}')
697
+
578
698
  response = @sg.client.contactdb.lists._(list_id).recipients.get(query_params: params, request_headers: headers)
579
- self.assert_equal(response.status_code, "200")
699
+
700
+ self.assert_equal('200', response.status_code)
580
701
  end
581
702
 
582
703
  def test_contactdb_lists__list_id__recipients__recipient_id__post
583
704
  list_id = "test_url_param"
584
705
  recipient_id = "test_url_param"
585
706
  headers = JSON.parse('{"X-Mock": 201}')
707
+
586
708
  response = @sg.client.contactdb.lists._(list_id).recipients._(recipient_id).post(request_headers: headers)
587
- self.assert_equal(response.status_code, "201")
709
+
710
+ self.assert_equal('201', response.status_code)
588
711
  end
589
712
 
590
713
  def test_contactdb_lists__list_id__recipients__recipient_id__delete
@@ -592,8 +715,10 @@ class TestAPI < Minitest::Test
592
715
  list_id = "test_url_param"
593
716
  recipient_id = "test_url_param"
594
717
  headers = JSON.parse('{"X-Mock": 204}')
718
+
595
719
  response = @sg.client.contactdb.lists._(list_id).recipients._(recipient_id).delete(query_params: params, request_headers: headers)
596
- self.assert_equal(response.status_code, "204")
720
+
721
+ self.assert_equal('204', response.status_code)
597
722
  end
598
723
 
599
724
  def test_contactdb_recipients_patch
@@ -605,8 +730,10 @@ class TestAPI < Minitest::Test
605
730
  }
606
731
  ]')
607
732
  headers = JSON.parse('{"X-Mock": 201}')
733
+
608
734
  response = @sg.client.contactdb.recipients.patch(request_body: data, request_headers: headers)
609
- self.assert_equal(response.status_code, "201")
735
+
736
+ self.assert_equal('201', response.status_code)
610
737
  end
611
738
 
612
739
  def test_contactdb_recipients_post
@@ -625,15 +752,19 @@ class TestAPI < Minitest::Test
625
752
  }
626
753
  ]')
627
754
  headers = JSON.parse('{"X-Mock": 201}')
755
+
628
756
  response = @sg.client.contactdb.recipients.post(request_body: data, request_headers: headers)
629
- self.assert_equal(response.status_code, "201")
757
+
758
+ self.assert_equal('201', response.status_code)
630
759
  end
631
760
 
632
761
  def test_contactdb_recipients_get
633
762
  params = JSON.parse('{"page": 1, "page_size": 1}')
634
763
  headers = JSON.parse('{"X-Mock": 200}')
764
+
635
765
  response = @sg.client.contactdb.recipients.get(query_params: params, request_headers: headers)
636
- self.assert_equal(response.status_code, "200")
766
+
767
+ self.assert_equal('200', response.status_code)
637
768
  end
638
769
 
639
770
  def test_contactdb_recipients_delete
@@ -642,54 +773,70 @@ class TestAPI < Minitest::Test
642
773
  "recipient_id2"
643
774
  ]')
644
775
  headers = JSON.parse('{"X-Mock": 200}')
776
+
645
777
  response = @sg.client.contactdb.recipients.delete(request_body: data, request_headers: headers)
646
- self.assert_equal(response.status_code, "200")
778
+
779
+ self.assert_equal('200', response.status_code)
647
780
  end
648
781
 
649
782
  def test_contactdb_recipients_billable_count_get
650
783
  headers = JSON.parse('{"X-Mock": 200}')
784
+
651
785
  response = @sg.client.contactdb.recipients.billable_count.get(request_headers: headers)
652
- self.assert_equal(response.status_code, "200")
786
+
787
+ self.assert_equal('200', response.status_code)
653
788
  end
654
789
 
655
790
  def test_contactdb_recipients_count_get
656
791
  headers = JSON.parse('{"X-Mock": 200}')
792
+
657
793
  response = @sg.client.contactdb.recipients.count.get(request_headers: headers)
658
- self.assert_equal(response.status_code, "200")
794
+
795
+ self.assert_equal('200', response.status_code)
659
796
  end
660
797
 
661
798
  def test_contactdb_recipients_search_get
662
- params = JSON.parse('{"{field_name}": "test_string"}')
799
+ params = { field_name: "test_string" }
663
800
  headers = JSON.parse('{"X-Mock": 200}')
801
+
664
802
  response = @sg.client.contactdb.recipients.search.get(query_params: params, request_headers: headers)
665
- self.assert_equal(response.status_code, "200")
803
+
804
+ self.assert_equal('200', response.status_code)
666
805
  end
667
806
 
668
807
  def test_contactdb_recipients__recipient_id__get
669
808
  recipient_id = "test_url_param"
670
809
  headers = JSON.parse('{"X-Mock": 200}')
810
+
671
811
  response = @sg.client.contactdb.recipients._(recipient_id).get(request_headers: headers)
672
- self.assert_equal(response.status_code, "200")
812
+
813
+ self.assert_equal('200', response.status_code)
673
814
  end
674
815
 
675
816
  def test_contactdb_recipients__recipient_id__delete
676
817
  recipient_id = "test_url_param"
677
818
  headers = JSON.parse('{"X-Mock": 204}')
819
+
678
820
  response = @sg.client.contactdb.recipients._(recipient_id).delete(request_headers: headers)
679
- self.assert_equal(response.status_code, "204")
821
+
822
+ self.assert_equal('204', response.status_code)
680
823
  end
681
824
 
682
825
  def test_contactdb_recipients__recipient_id__lists_get
683
826
  recipient_id = "test_url_param"
684
827
  headers = JSON.parse('{"X-Mock": 200}')
828
+
685
829
  response = @sg.client.contactdb.recipients._(recipient_id).lists.get(request_headers: headers)
686
- self.assert_equal(response.status_code, "200")
830
+
831
+ self.assert_equal('200', response.status_code)
687
832
  end
688
833
 
689
834
  def test_contactdb_reserved_fields_get
690
835
  headers = JSON.parse('{"X-Mock": 200}')
836
+
691
837
  response = @sg.client.contactdb.reserved_fields.get(request_headers: headers)
692
- self.assert_equal(response.status_code, "200")
838
+
839
+ self.assert_equal('200', response.status_code)
693
840
  end
694
841
 
695
842
  def test_contactdb_segments_post
@@ -718,14 +865,18 @@ class TestAPI < Minitest::Test
718
865
  "name": "Last Name Miller"
719
866
  }')
720
867
  headers = JSON.parse('{"X-Mock": 200}')
868
+
721
869
  response = @sg.client.contactdb.segments.post(request_body: data, request_headers: headers)
722
- self.assert_equal(response.status_code, "200")
870
+
871
+ self.assert_equal('200', response.status_code)
723
872
  end
724
873
 
725
874
  def test_contactdb_segments_get
726
875
  headers = JSON.parse('{"X-Mock": 200}')
876
+
727
877
  response = @sg.client.contactdb.segments.get(request_headers: headers)
728
- self.assert_equal(response.status_code, "200")
878
+
879
+ self.assert_equal('200', response.status_code)
729
880
  end
730
881
 
731
882
  def test_contactdb_segments__segment_id__patch
@@ -744,59 +895,75 @@ class TestAPI < Minitest::Test
744
895
  params = JSON.parse('{"segment_id": "test_string"}')
745
896
  segment_id = "test_url_param"
746
897
  headers = JSON.parse('{"X-Mock": 200}')
898
+
747
899
  response = @sg.client.contactdb.segments._(segment_id).patch(request_body: data, query_params: params, request_headers: headers)
748
- self.assert_equal(response.status_code, "200")
900
+
901
+ self.assert_equal('200', response.status_code)
749
902
  end
750
903
 
751
904
  def test_contactdb_segments__segment_id__get
752
905
  params = JSON.parse('{"segment_id": 1}')
753
906
  segment_id = "test_url_param"
754
907
  headers = JSON.parse('{"X-Mock": 200}')
908
+
755
909
  response = @sg.client.contactdb.segments._(segment_id).get(query_params: params, request_headers: headers)
756
- self.assert_equal(response.status_code, "200")
910
+
911
+ self.assert_equal('200', response.status_code)
757
912
  end
758
913
 
759
914
  def test_contactdb_segments__segment_id__delete
760
915
  params = JSON.parse('{"delete_contacts": "true"}')
761
916
  segment_id = "test_url_param"
762
917
  headers = JSON.parse('{"X-Mock": 204}')
918
+
763
919
  response = @sg.client.contactdb.segments._(segment_id).delete(query_params: params, request_headers: headers)
764
- self.assert_equal(response.status_code, "204")
920
+
921
+ self.assert_equal('204', response.status_code)
765
922
  end
766
923
 
767
924
  def test_contactdb_segments__segment_id__recipients_get
768
925
  params = JSON.parse('{"page": 1, "page_size": 1}')
769
926
  segment_id = "test_url_param"
770
927
  headers = JSON.parse('{"X-Mock": 200}')
928
+
771
929
  response = @sg.client.contactdb.segments._(segment_id).recipients.get(query_params: params, request_headers: headers)
772
- self.assert_equal(response.status_code, "200")
930
+
931
+ self.assert_equal('200', response.status_code)
773
932
  end
774
933
 
775
934
  def test_devices_stats_get
776
935
  params = JSON.parse('{"aggregated_by": "day", "limit": 1, "start_date": "2016-01-01", "end_date": "2016-04-01", "offset": 1}')
777
936
  headers = JSON.parse('{"X-Mock": 200}')
937
+
778
938
  response = @sg.client.devices.stats.get(query_params: params, request_headers: headers)
779
- self.assert_equal(response.status_code, "200")
939
+
940
+ self.assert_equal('200', response.status_code)
780
941
  end
781
942
 
782
943
  def test_geo_stats_get
783
944
  params = JSON.parse('{"end_date": "2016-04-01", "country": "US", "aggregated_by": "day", "limit": 1, "offset": 1, "start_date": "2016-01-01"}')
784
945
  headers = JSON.parse('{"X-Mock": 200}')
946
+
785
947
  response = @sg.client.geo.stats.get(query_params: params, request_headers: headers)
786
- self.assert_equal(response.status_code, "200")
948
+
949
+ self.assert_equal('200', response.status_code)
787
950
  end
788
951
 
789
952
  def test_ips_get
790
953
  params = JSON.parse('{"subuser": "test_string", "ip": "test_string", "limit": 1, "exclude_whitelabels": "true", "offset": 1}')
791
954
  headers = JSON.parse('{"X-Mock": 200}')
955
+
792
956
  response = @sg.client.ips.get(query_params: params, request_headers: headers)
793
- self.assert_equal(response.status_code, "200")
957
+
958
+ self.assert_equal('200', response.status_code)
794
959
  end
795
960
 
796
961
  def test_ips_assigned_get
797
962
  headers = JSON.parse('{"X-Mock": 200}')
963
+
798
964
  response = @sg.client.ips.assigned.get(request_headers: headers)
799
- self.assert_equal(response.status_code, "200")
965
+
966
+ self.assert_equal('200', response.status_code)
800
967
  end
801
968
 
802
969
  def test_ips_pools_post
@@ -804,14 +971,18 @@ class TestAPI < Minitest::Test
804
971
  "name": "marketing"
805
972
  }')
806
973
  headers = JSON.parse('{"X-Mock": 200}')
974
+
807
975
  response = @sg.client.ips.pools.post(request_body: data, request_headers: headers)
808
- self.assert_equal(response.status_code, "200")
976
+
977
+ self.assert_equal('200', response.status_code)
809
978
  end
810
979
 
811
980
  def test_ips_pools_get
812
981
  headers = JSON.parse('{"X-Mock": 200}')
982
+
813
983
  response = @sg.client.ips.pools.get(request_headers: headers)
814
- self.assert_equal(response.status_code, "200")
984
+
985
+ self.assert_equal('200', response.status_code)
815
986
  end
816
987
 
817
988
  def test_ips_pools__pool_name__put
@@ -820,22 +991,28 @@ class TestAPI < Minitest::Test
820
991
  }')
821
992
  pool_name = "test_url_param"
822
993
  headers = JSON.parse('{"X-Mock": 200}')
994
+
823
995
  response = @sg.client.ips.pools._(pool_name).put(request_body: data, request_headers: headers)
824
- self.assert_equal(response.status_code, "200")
996
+
997
+ self.assert_equal('200', response.status_code)
825
998
  end
826
999
 
827
1000
  def test_ips_pools__pool_name__get
828
1001
  pool_name = "test_url_param"
829
1002
  headers = JSON.parse('{"X-Mock": 200}')
1003
+
830
1004
  response = @sg.client.ips.pools._(pool_name).get(request_headers: headers)
831
- self.assert_equal(response.status_code, "200")
1005
+
1006
+ self.assert_equal('200', response.status_code)
832
1007
  end
833
1008
 
834
1009
  def test_ips_pools__pool_name__delete
835
1010
  pool_name = "test_url_param"
836
1011
  headers = JSON.parse('{"X-Mock": 204}')
1012
+
837
1013
  response = @sg.client.ips.pools._(pool_name).delete(request_headers: headers)
838
- self.assert_equal(response.status_code, "204")
1014
+
1015
+ self.assert_equal('204', response.status_code)
839
1016
  end
840
1017
 
841
1018
  def test_ips_pools__pool_name__ips_post
@@ -844,16 +1021,20 @@ class TestAPI < Minitest::Test
844
1021
  }')
845
1022
  pool_name = "test_url_param"
846
1023
  headers = JSON.parse('{"X-Mock": 201}')
1024
+
847
1025
  response = @sg.client.ips.pools._(pool_name).ips.post(request_body: data, request_headers: headers)
848
- self.assert_equal(response.status_code, "201")
1026
+
1027
+ self.assert_equal('201', response.status_code)
849
1028
  end
850
1029
 
851
1030
  def test_ips_pools__pool_name__ips__ip__delete
852
1031
  pool_name = "test_url_param"
853
1032
  ip = "test_url_param"
854
1033
  headers = JSON.parse('{"X-Mock": 204}')
1034
+
855
1035
  response = @sg.client.ips.pools._(pool_name).ips._(ip).delete(request_headers: headers)
856
- self.assert_equal(response.status_code, "204")
1036
+
1037
+ self.assert_equal('204', response.status_code)
857
1038
  end
858
1039
 
859
1040
  def test_ips_warmup_post
@@ -861,48 +1042,62 @@ class TestAPI < Minitest::Test
861
1042
  "ip": "0.0.0.0"
862
1043
  }')
863
1044
  headers = JSON.parse('{"X-Mock": 200}')
1045
+
864
1046
  response = @sg.client.ips.warmup.post(request_body: data, request_headers: headers)
865
- self.assert_equal(response.status_code, "200")
1047
+
1048
+ self.assert_equal('200', response.status_code)
866
1049
  end
867
1050
 
868
1051
  def test_ips_warmup_get
869
1052
  headers = JSON.parse('{"X-Mock": 200}')
1053
+
870
1054
  response = @sg.client.ips.warmup.get(request_headers: headers)
871
- self.assert_equal(response.status_code, "200")
1055
+
1056
+ self.assert_equal('200', response.status_code)
872
1057
  end
873
1058
 
874
1059
  def test_ips_warmup__ip_address__get
875
1060
  ip_address = "test_url_param"
876
1061
  headers = JSON.parse('{"X-Mock": 200}')
1062
+
877
1063
  response = @sg.client.ips.warmup._(ip_address).get(request_headers: headers)
878
- self.assert_equal(response.status_code, "200")
1064
+
1065
+ self.assert_equal('200', response.status_code)
879
1066
  end
880
1067
 
881
1068
  def test_ips_warmup__ip_address__delete
882
1069
  ip_address = "test_url_param"
883
1070
  headers = JSON.parse('{"X-Mock": 204}')
1071
+
884
1072
  response = @sg.client.ips.warmup._(ip_address).delete(request_headers: headers)
885
- self.assert_equal(response.status_code, "204")
1073
+
1074
+ self.assert_equal('204', response.status_code)
886
1075
  end
887
1076
 
888
1077
  def test_ips__ip_address__get
889
1078
  ip_address = "test_url_param"
890
1079
  headers = JSON.parse('{"X-Mock": 200}')
1080
+
891
1081
  response = @sg.client.ips._(ip_address).get(request_headers: headers)
892
- self.assert_equal(response.status_code, "200")
1082
+
1083
+ self.assert_equal('200', response.status_code)
893
1084
  end
894
1085
 
895
1086
  def test_mail_batch_post
896
1087
  headers = JSON.parse('{"X-Mock": 201}')
1088
+
897
1089
  response = @sg.client.mail.batch.post(request_headers: headers)
898
- self.assert_equal(response.status_code, "201")
1090
+
1091
+ self.assert_equal('201', response.status_code)
899
1092
  end
900
1093
 
901
1094
  def test_mail_batch__batch_id__get
902
1095
  batch_id = "test_url_param"
903
1096
  headers = JSON.parse('{"X-Mock": 200}')
1097
+
904
1098
  response = @sg.client.mail.batch._(batch_id).get(request_headers: headers)
905
- self.assert_equal(response.status_code, "200")
1099
+
1100
+ self.assert_equal('200', response.status_code)
906
1101
  end
907
1102
 
908
1103
  def test_mail_send_post
@@ -1045,15 +1240,19 @@ class TestAPI < Minitest::Test
1045
1240
  }
1046
1241
  }')
1047
1242
  headers = JSON.parse('{"X-Mock": 202}')
1243
+
1048
1244
  response = @sg.client.mail._("send").post(request_body: data, request_headers: headers)
1049
- self.assert_equal(response.status_code, "202")
1245
+
1246
+ self.assert_equal('202', response.status_code)
1050
1247
  end
1051
1248
 
1052
1249
  def test_mail_settings_get
1053
1250
  params = JSON.parse('{"limit": 1, "offset": 1}')
1054
1251
  headers = JSON.parse('{"X-Mock": 200}')
1252
+
1055
1253
  response = @sg.client.mail_settings.get(query_params: params, request_headers: headers)
1056
- self.assert_equal(response.status_code, "200")
1254
+
1255
+ self.assert_equal('200', response.status_code)
1057
1256
  end
1058
1257
 
1059
1258
  def test_mail_settings_address_whitelist_patch
@@ -1065,14 +1264,18 @@ class TestAPI < Minitest::Test
1065
1264
  ]
1066
1265
  }')
1067
1266
  headers = JSON.parse('{"X-Mock": 200}')
1267
+
1068
1268
  response = @sg.client.mail_settings.address_whitelist.patch(request_body: data, request_headers: headers)
1069
- self.assert_equal(response.status_code, "200")
1269
+
1270
+ self.assert_equal('200', response.status_code)
1070
1271
  end
1071
1272
 
1072
1273
  def test_mail_settings_address_whitelist_get
1073
1274
  headers = JSON.parse('{"X-Mock": 200}')
1275
+
1074
1276
  response = @sg.client.mail_settings.address_whitelist.get(request_headers: headers)
1075
- self.assert_equal(response.status_code, "200")
1277
+
1278
+ self.assert_equal('200', response.status_code)
1076
1279
  end
1077
1280
 
1078
1281
  def test_mail_settings_bcc_patch
@@ -1081,14 +1284,18 @@ class TestAPI < Minitest::Test
1081
1284
  "enabled": false
1082
1285
  }')
1083
1286
  headers = JSON.parse('{"X-Mock": 200}')
1287
+
1084
1288
  response = @sg.client.mail_settings.bcc.patch(request_body: data, request_headers: headers)
1085
- self.assert_equal(response.status_code, "200")
1289
+
1290
+ self.assert_equal('200', response.status_code)
1086
1291
  end
1087
1292
 
1088
1293
  def test_mail_settings_bcc_get
1089
1294
  headers = JSON.parse('{"X-Mock": 200}')
1295
+
1090
1296
  response = @sg.client.mail_settings.bcc.get(request_headers: headers)
1091
- self.assert_equal(response.status_code, "200")
1297
+
1298
+ self.assert_equal('200', response.status_code)
1092
1299
  end
1093
1300
 
1094
1301
  def test_mail_settings_bounce_purge_patch
@@ -1098,14 +1305,18 @@ class TestAPI < Minitest::Test
1098
1305
  "soft_bounces": 5
1099
1306
  }')
1100
1307
  headers = JSON.parse('{"X-Mock": 200}')
1308
+
1101
1309
  response = @sg.client.mail_settings.bounce_purge.patch(request_body: data, request_headers: headers)
1102
- self.assert_equal(response.status_code, "200")
1310
+
1311
+ self.assert_equal('200', response.status_code)
1103
1312
  end
1104
1313
 
1105
1314
  def test_mail_settings_bounce_purge_get
1106
1315
  headers = JSON.parse('{"X-Mock": 200}')
1316
+
1107
1317
  response = @sg.client.mail_settings.bounce_purge.get(request_headers: headers)
1108
- self.assert_equal(response.status_code, "200")
1318
+
1319
+ self.assert_equal('200', response.status_code)
1109
1320
  end
1110
1321
 
1111
1322
  def test_mail_settings_footer_patch
@@ -1115,14 +1326,18 @@ class TestAPI < Minitest::Test
1115
1326
  "plain_content": "..."
1116
1327
  }')
1117
1328
  headers = JSON.parse('{"X-Mock": 200}')
1329
+
1118
1330
  response = @sg.client.mail_settings.footer.patch(request_body: data, request_headers: headers)
1119
- self.assert_equal(response.status_code, "200")
1331
+
1332
+ self.assert_equal('200', response.status_code)
1120
1333
  end
1121
1334
 
1122
1335
  def test_mail_settings_footer_get
1123
1336
  headers = JSON.parse('{"X-Mock": 200}')
1337
+
1124
1338
  response = @sg.client.mail_settings.footer.get(request_headers: headers)
1125
- self.assert_equal(response.status_code, "200")
1339
+
1340
+ self.assert_equal('200', response.status_code)
1126
1341
  end
1127
1342
 
1128
1343
  def test_mail_settings_forward_bounce_patch
@@ -1131,14 +1346,18 @@ class TestAPI < Minitest::Test
1131
1346
  "enabled": true
1132
1347
  }')
1133
1348
  headers = JSON.parse('{"X-Mock": 200}')
1349
+
1134
1350
  response = @sg.client.mail_settings.forward_bounce.patch(request_body: data, request_headers: headers)
1135
- self.assert_equal(response.status_code, "200")
1351
+
1352
+ self.assert_equal('200', response.status_code)
1136
1353
  end
1137
1354
 
1138
1355
  def test_mail_settings_forward_bounce_get
1139
1356
  headers = JSON.parse('{"X-Mock": 200}')
1357
+
1140
1358
  response = @sg.client.mail_settings.forward_bounce.get(request_headers: headers)
1141
- self.assert_equal(response.status_code, "200")
1359
+
1360
+ self.assert_equal('200', response.status_code)
1142
1361
  end
1143
1362
 
1144
1363
  def test_mail_settings_forward_spam_patch
@@ -1147,14 +1366,18 @@ class TestAPI < Minitest::Test
1147
1366
  "enabled": false
1148
1367
  }')
1149
1368
  headers = JSON.parse('{"X-Mock": 200}')
1369
+
1150
1370
  response = @sg.client.mail_settings.forward_spam.patch(request_body: data, request_headers: headers)
1151
- self.assert_equal(response.status_code, "200")
1371
+
1372
+ self.assert_equal('200', response.status_code)
1152
1373
  end
1153
1374
 
1154
1375
  def test_mail_settings_forward_spam_get
1155
1376
  headers = JSON.parse('{"X-Mock": 200}')
1377
+
1156
1378
  response = @sg.client.mail_settings.forward_spam.get(request_headers: headers)
1157
- self.assert_equal(response.status_code, "200")
1379
+
1380
+ self.assert_equal('200', response.status_code)
1158
1381
  end
1159
1382
 
1160
1383
  def test_mail_settings_plain_content_patch
@@ -1162,14 +1385,18 @@ class TestAPI < Minitest::Test
1162
1385
  "enabled": false
1163
1386
  }')
1164
1387
  headers = JSON.parse('{"X-Mock": 200}')
1388
+
1165
1389
  response = @sg.client.mail_settings.plain_content.patch(request_body: data, request_headers: headers)
1166
- self.assert_equal(response.status_code, "200")
1390
+
1391
+ self.assert_equal('200', response.status_code)
1167
1392
  end
1168
1393
 
1169
1394
  def test_mail_settings_plain_content_get
1170
1395
  headers = JSON.parse('{"X-Mock": 200}')
1396
+
1171
1397
  response = @sg.client.mail_settings.plain_content.get(request_headers: headers)
1172
- self.assert_equal(response.status_code, "200")
1398
+
1399
+ self.assert_equal('200', response.status_code)
1173
1400
  end
1174
1401
 
1175
1402
  def test_mail_settings_spam_check_patch
@@ -1179,14 +1406,18 @@ class TestAPI < Minitest::Test
1179
1406
  "url": "url"
1180
1407
  }')
1181
1408
  headers = JSON.parse('{"X-Mock": 200}')
1409
+
1182
1410
  response = @sg.client.mail_settings.spam_check.patch(request_body: data, request_headers: headers)
1183
- self.assert_equal(response.status_code, "200")
1411
+
1412
+ self.assert_equal('200', response.status_code)
1184
1413
  end
1185
1414
 
1186
1415
  def test_mail_settings_spam_check_get
1187
1416
  headers = JSON.parse('{"X-Mock": 200}')
1417
+
1188
1418
  response = @sg.client.mail_settings.spam_check.get(request_headers: headers)
1189
- self.assert_equal(response.status_code, "200")
1419
+
1420
+ self.assert_equal('200', response.status_code)
1190
1421
  end
1191
1422
 
1192
1423
  def test_mail_settings_template_patch
@@ -1195,28 +1426,36 @@ class TestAPI < Minitest::Test
1195
1426
  "html_content": "<% body %>"
1196
1427
  }')
1197
1428
  headers = JSON.parse('{"X-Mock": 200}')
1429
+
1198
1430
  response = @sg.client.mail_settings.template.patch(request_body: data, request_headers: headers)
1199
- self.assert_equal(response.status_code, "200")
1431
+
1432
+ self.assert_equal('200', response.status_code)
1200
1433
  end
1201
1434
 
1202
1435
  def test_mail_settings_template_get
1203
1436
  headers = JSON.parse('{"X-Mock": 200}')
1437
+
1204
1438
  response = @sg.client.mail_settings.template.get(request_headers: headers)
1205
- self.assert_equal(response.status_code, "200")
1439
+
1440
+ self.assert_equal('200', response.status_code)
1206
1441
  end
1207
1442
 
1208
1443
  def test_mailbox_providers_stats_get
1209
1444
  params = JSON.parse('{"end_date": "2016-04-01", "mailbox_providers": "test_string", "aggregated_by": "day", "limit": 1, "offset": 1, "start_date": "2016-01-01"}')
1210
1445
  headers = JSON.parse('{"X-Mock": 200}')
1446
+
1211
1447
  response = @sg.client.mailbox_providers.stats.get(query_params: params, request_headers: headers)
1212
- self.assert_equal(response.status_code, "200")
1448
+
1449
+ self.assert_equal('200', response.status_code)
1213
1450
  end
1214
1451
 
1215
1452
  def test_partner_settings_get
1216
1453
  params = JSON.parse('{"limit": 1, "offset": 1}')
1217
1454
  headers = JSON.parse('{"X-Mock": 200}')
1455
+
1218
1456
  response = @sg.client.partner_settings.get(query_params: params, request_headers: headers)
1219
- self.assert_equal(response.status_code, "200")
1457
+
1458
+ self.assert_equal('200', response.status_code)
1220
1459
  end
1221
1460
 
1222
1461
  def test_partner_settings_new_relic_patch
@@ -1226,20 +1465,26 @@ class TestAPI < Minitest::Test
1226
1465
  "license_key": ""
1227
1466
  }')
1228
1467
  headers = JSON.parse('{"X-Mock": 200}')
1468
+
1229
1469
  response = @sg.client.partner_settings.new_relic.patch(request_body: data, request_headers: headers)
1230
- self.assert_equal(response.status_code, "200")
1470
+
1471
+ self.assert_equal('200', response.status_code)
1231
1472
  end
1232
1473
 
1233
1474
  def test_partner_settings_new_relic_get
1234
1475
  headers = JSON.parse('{"X-Mock": 200}')
1476
+
1235
1477
  response = @sg.client.partner_settings.new_relic.get(request_headers: headers)
1236
- self.assert_equal(response.status_code, "200")
1478
+
1479
+ self.assert_equal('200', response.status_code)
1237
1480
  end
1238
1481
 
1239
1482
  def test_scopes_get
1240
1483
  headers = JSON.parse('{"X-Mock": 200}')
1484
+
1241
1485
  response = @sg.client.scopes.get(request_headers: headers)
1242
- self.assert_equal(response.status_code, "200")
1486
+
1487
+ self.assert_equal('200', response.status_code)
1243
1488
  end
1244
1489
 
1245
1490
  def test_senders_post
@@ -1319,8 +1564,10 @@ class TestAPI < Minitest::Test
1319
1564
  def test_stats_get
1320
1565
  params = JSON.parse('{"aggregated_by": "day", "limit": 1, "start_date": "2016-01-01", "end_date": "2016-04-01", "offset": 1}')
1321
1566
  headers = JSON.parse('{"X-Mock": 200}')
1567
+
1322
1568
  response = @sg.client.stats.get(query_params: params, request_headers: headers)
1323
- self.assert_equal(response.status_code, "200")
1569
+
1570
+ self.assert_equal('200', response.status_code)
1324
1571
  end
1325
1572
 
1326
1573
  def test_subusers_post
@@ -1334,43 +1581,55 @@ class TestAPI < Minitest::Test
1334
1581
  "username": "John@example.com"
1335
1582
  }')
1336
1583
  headers = JSON.parse('{"X-Mock": 200}')
1584
+
1337
1585
  response = @sg.client.subusers.post(request_body: data, request_headers: headers)
1338
- self.assert_equal(response.status_code, "200")
1586
+
1587
+ self.assert_equal('200', response.status_code)
1339
1588
  end
1340
1589
 
1341
1590
  def test_subusers_get
1342
1591
  params = JSON.parse('{"username": "test_string", "limit": 1, "offset": 1}')
1343
1592
  headers = JSON.parse('{"X-Mock": 200}')
1593
+
1344
1594
  response = @sg.client.subusers.get(query_params: params, request_headers: headers)
1345
- self.assert_equal(response.status_code, "200")
1595
+
1596
+ self.assert_equal('200', response.status_code)
1346
1597
  end
1347
1598
 
1348
1599
  def test_subusers_reputations_get
1349
1600
  params = JSON.parse('{"usernames": "test_string"}')
1350
1601
  headers = JSON.parse('{"X-Mock": 200}')
1602
+
1351
1603
  response = @sg.client.subusers.reputations.get(query_params: params, request_headers: headers)
1352
- self.assert_equal(response.status_code, "200")
1604
+
1605
+ self.assert_equal('200', response.status_code)
1353
1606
  end
1354
1607
 
1355
1608
  def test_subusers_stats_get
1356
1609
  params = JSON.parse('{"end_date": "2016-04-01", "aggregated_by": "day", "limit": 1, "offset": 1, "start_date": "2016-01-01", "subusers": "test_string"}')
1357
1610
  headers = JSON.parse('{"X-Mock": 200}')
1611
+
1358
1612
  response = @sg.client.subusers.stats.get(query_params: params, request_headers: headers)
1359
- self.assert_equal(response.status_code, "200")
1613
+
1614
+ self.assert_equal('200', response.status_code)
1360
1615
  end
1361
1616
 
1362
1617
  def test_subusers_stats_monthly_get
1363
1618
  params = JSON.parse('{"subuser": "test_string", "limit": 1, "sort_by_metric": "test_string", "offset": 1, "date": "test_string", "sort_by_direction": "asc"}')
1364
1619
  headers = JSON.parse('{"X-Mock": 200}')
1620
+
1365
1621
  response = @sg.client.subusers.stats.monthly.get(query_params: params, request_headers: headers)
1366
- self.assert_equal(response.status_code, "200")
1622
+
1623
+ self.assert_equal('200', response.status_code)
1367
1624
  end
1368
1625
 
1369
1626
  def test_subusers_stats_sums_get
1370
1627
  params = JSON.parse('{"end_date": "2016-04-01", "aggregated_by": "day", "limit": 1, "sort_by_metric": "test_string", "offset": 1, "start_date": "2016-01-01", "sort_by_direction": "asc"}')
1371
1628
  headers = JSON.parse('{"X-Mock": 200}')
1629
+
1372
1630
  response = @sg.client.subusers.stats.sums.get(query_params: params, request_headers: headers)
1373
- self.assert_equal(response.status_code, "200")
1631
+
1632
+ self.assert_equal('200', response.status_code)
1374
1633
  end
1375
1634
 
1376
1635
  def test_subusers__subuser_name__patch
@@ -1379,15 +1638,19 @@ class TestAPI < Minitest::Test
1379
1638
  }')
1380
1639
  subuser_name = "test_url_param"
1381
1640
  headers = JSON.parse('{"X-Mock": 204}')
1641
+
1382
1642
  response = @sg.client.subusers._(subuser_name).patch(request_body: data, request_headers: headers)
1383
- self.assert_equal(response.status_code, "204")
1643
+
1644
+ self.assert_equal('204', response.status_code)
1384
1645
  end
1385
1646
 
1386
1647
  def test_subusers__subuser_name__delete
1387
1648
  subuser_name = "test_url_param"
1388
1649
  headers = JSON.parse('{"X-Mock": 204}')
1650
+
1389
1651
  response = @sg.client.subusers._(subuser_name).delete(request_headers: headers)
1390
- self.assert_equal(response.status_code, "204")
1652
+
1653
+ self.assert_equal('204', response.status_code)
1391
1654
  end
1392
1655
 
1393
1656
  def test_subusers__subuser_name__ips_put
@@ -1396,8 +1659,10 @@ class TestAPI < Minitest::Test
1396
1659
  ]')
1397
1660
  subuser_name = "test_url_param"
1398
1661
  headers = JSON.parse('{"X-Mock": 200}')
1662
+
1399
1663
  response = @sg.client.subusers._(subuser_name).ips.put(request_body: data, request_headers: headers)
1400
- self.assert_equal(response.status_code, "200")
1664
+
1665
+ self.assert_equal('200', response.status_code)
1401
1666
  end
1402
1667
 
1403
1668
  def test_subusers__subuser_name__monitor_put
@@ -1407,8 +1672,10 @@ class TestAPI < Minitest::Test
1407
1672
  }')
1408
1673
  subuser_name = "test_url_param"
1409
1674
  headers = JSON.parse('{"X-Mock": 200}')
1675
+
1410
1676
  response = @sg.client.subusers._(subuser_name).monitor.put(request_body: data, request_headers: headers)
1411
- self.assert_equal(response.status_code, "200")
1677
+
1678
+ self.assert_equal('200', response.status_code)
1412
1679
  end
1413
1680
 
1414
1681
  def test_subusers__subuser_name__monitor_post
@@ -1418,37 +1685,47 @@ class TestAPI < Minitest::Test
1418
1685
  }')
1419
1686
  subuser_name = "test_url_param"
1420
1687
  headers = JSON.parse('{"X-Mock": 200}')
1688
+
1421
1689
  response = @sg.client.subusers._(subuser_name).monitor.post(request_body: data, request_headers: headers)
1422
- self.assert_equal(response.status_code, "200")
1690
+
1691
+ self.assert_equal('200', response.status_code)
1423
1692
  end
1424
1693
 
1425
1694
  def test_subusers__subuser_name__monitor_get
1426
1695
  subuser_name = "test_url_param"
1427
1696
  headers = JSON.parse('{"X-Mock": 200}')
1697
+
1428
1698
  response = @sg.client.subusers._(subuser_name).monitor.get(request_headers: headers)
1429
- self.assert_equal(response.status_code, "200")
1699
+
1700
+ self.assert_equal('200', response.status_code)
1430
1701
  end
1431
1702
 
1432
1703
  def test_subusers__subuser_name__monitor_delete
1433
1704
  subuser_name = "test_url_param"
1434
1705
  headers = JSON.parse('{"X-Mock": 204}')
1706
+
1435
1707
  response = @sg.client.subusers._(subuser_name).monitor.delete(request_headers: headers)
1436
- self.assert_equal(response.status_code, "204")
1708
+
1709
+ self.assert_equal('204', response.status_code)
1437
1710
  end
1438
1711
 
1439
1712
  def test_subusers__subuser_name__stats_monthly_get
1440
1713
  params = JSON.parse('{"date": "test_string", "sort_by_direction": "asc", "limit": 1, "sort_by_metric": "test_string", "offset": 1}')
1441
1714
  subuser_name = "test_url_param"
1442
1715
  headers = JSON.parse('{"X-Mock": 200}')
1716
+
1443
1717
  response = @sg.client.subusers._(subuser_name).stats.monthly.get(query_params: params, request_headers: headers)
1444
- self.assert_equal(response.status_code, "200")
1718
+
1719
+ self.assert_equal('200', response.status_code)
1445
1720
  end
1446
1721
 
1447
1722
  def test_suppression_blocks_get
1448
1723
  params = JSON.parse('{"start_time": 1, "limit": 1, "end_time": 1, "offset": 1}')
1449
1724
  headers = JSON.parse('{"X-Mock": 200}')
1725
+
1450
1726
  response = @sg.client.suppression.blocks.get(query_params: params, request_headers: headers)
1451
- self.assert_equal(response.status_code, "200")
1727
+
1728
+ self.assert_equal('200', response.status_code)
1452
1729
  end
1453
1730
 
1454
1731
  def test_suppression_blocks_delete
@@ -1460,29 +1737,37 @@ class TestAPI < Minitest::Test
1460
1737
  ]
1461
1738
  }')
1462
1739
  headers = JSON.parse('{"X-Mock": 204}')
1740
+
1463
1741
  response = @sg.client.suppression.blocks.delete(request_body: data, request_headers: headers)
1464
- self.assert_equal(response.status_code, "204")
1742
+
1743
+ self.assert_equal('204', response.status_code)
1465
1744
  end
1466
1745
 
1467
1746
  def test_suppression_blocks__email__get
1468
1747
  email = "test_url_param"
1469
1748
  headers = JSON.parse('{"X-Mock": 200}')
1749
+
1470
1750
  response = @sg.client.suppression.blocks._(email).get(request_headers: headers)
1471
- self.assert_equal(response.status_code, "200")
1751
+
1752
+ self.assert_equal('200', response.status_code)
1472
1753
  end
1473
1754
 
1474
1755
  def test_suppression_blocks__email__delete
1475
1756
  email = "test_url_param"
1476
1757
  headers = JSON.parse('{"X-Mock": 204}')
1758
+
1477
1759
  response = @sg.client.suppression.blocks._(email).delete(request_headers: headers)
1478
- self.assert_equal(response.status_code, "204")
1760
+
1761
+ self.assert_equal('204', response.status_code)
1479
1762
  end
1480
1763
 
1481
1764
  def test_suppression_bounces_get
1482
1765
  params = JSON.parse('{"start_time": 1, "end_time": 1}')
1483
1766
  headers = JSON.parse('{"X-Mock": 200}')
1767
+
1484
1768
  response = @sg.client.suppression.bounces.get(query_params: params, request_headers: headers)
1485
- self.assert_equal(response.status_code, "200")
1769
+
1770
+ self.assert_equal('200', response.status_code)
1486
1771
  end
1487
1772
 
1488
1773
  def test_suppression_bounces_delete
@@ -1494,30 +1779,38 @@ class TestAPI < Minitest::Test
1494
1779
  ]
1495
1780
  }')
1496
1781
  headers = JSON.parse('{"X-Mock": 204}')
1782
+
1497
1783
  response = @sg.client.suppression.bounces.delete(request_body: data, request_headers: headers)
1498
- self.assert_equal(response.status_code, "204")
1784
+
1785
+ self.assert_equal('204', response.status_code)
1499
1786
  end
1500
1787
 
1501
1788
  def test_suppression_bounces__email__get
1502
1789
  email = "test_url_param"
1503
1790
  headers = JSON.parse('{"X-Mock": 200}')
1791
+
1504
1792
  response = @sg.client.suppression.bounces._(email).get(request_headers: headers)
1505
- self.assert_equal(response.status_code, "200")
1793
+
1794
+ self.assert_equal('200', response.status_code)
1506
1795
  end
1507
1796
 
1508
1797
  def test_suppression_bounces__email__delete
1509
1798
  params = JSON.parse('{"email_address": "example@example.com"}')
1510
1799
  email = "test_url_param"
1511
1800
  headers = JSON.parse('{"X-Mock": 204}')
1801
+
1512
1802
  response = @sg.client.suppression.bounces._(email).delete(query_params: params, request_headers: headers)
1513
- self.assert_equal(response.status_code, "204")
1803
+
1804
+ self.assert_equal('204', response.status_code)
1514
1805
  end
1515
1806
 
1516
1807
  def test_suppression_invalid_emails_get
1517
1808
  params = JSON.parse('{"start_time": 1, "limit": 1, "end_time": 1, "offset": 1}')
1518
1809
  headers = JSON.parse('{"X-Mock": 200}')
1810
+
1519
1811
  response = @sg.client.suppression.invalid_emails.get(query_params: params, request_headers: headers)
1520
- self.assert_equal(response.status_code, "200")
1812
+
1813
+ self.assert_equal('200', response.status_code)
1521
1814
  end
1522
1815
 
1523
1816
  def test_suppression_invalid_emails_delete
@@ -1529,43 +1822,55 @@ class TestAPI < Minitest::Test
1529
1822
  ]
1530
1823
  }')
1531
1824
  headers = JSON.parse('{"X-Mock": 204}')
1825
+
1532
1826
  response = @sg.client.suppression.invalid_emails.delete(request_body: data, request_headers: headers)
1533
- self.assert_equal(response.status_code, "204")
1827
+
1828
+ self.assert_equal('204', response.status_code)
1534
1829
  end
1535
1830
 
1536
1831
  def test_suppression_invalid_emails__email__get
1537
1832
  email = "test_url_param"
1538
1833
  headers = JSON.parse('{"X-Mock": 200}')
1834
+
1539
1835
  response = @sg.client.suppression.invalid_emails._(email).get(request_headers: headers)
1540
- self.assert_equal(response.status_code, "200")
1836
+
1837
+ self.assert_equal('200', response.status_code)
1541
1838
  end
1542
1839
 
1543
1840
  def test_suppression_invalid_emails__email__delete
1544
1841
  email = "test_url_param"
1545
1842
  headers = JSON.parse('{"X-Mock": 204}')
1843
+
1546
1844
  response = @sg.client.suppression.invalid_emails._(email).delete(request_headers: headers)
1547
- self.assert_equal(response.status_code, "204")
1845
+
1846
+ self.assert_equal('204', response.status_code)
1548
1847
  end
1549
1848
 
1550
1849
  def test_suppression_spam_report__email__get
1551
1850
  email = "test_url_param"
1552
1851
  headers = JSON.parse('{"X-Mock": 200}')
1852
+
1553
1853
  response = @sg.client.suppression.spam_report._(email).get(request_headers: headers)
1554
- self.assert_equal(response.status_code, "200")
1854
+
1855
+ self.assert_equal('200', response.status_code)
1555
1856
  end
1556
1857
 
1557
1858
  def test_suppression_spam_report__email__delete
1558
1859
  email = "test_url_param"
1559
1860
  headers = JSON.parse('{"X-Mock": 204}')
1861
+
1560
1862
  response = @sg.client.suppression.spam_report._(email).delete(request_headers: headers)
1561
- self.assert_equal(response.status_code, "204")
1863
+
1864
+ self.assert_equal('204', response.status_code)
1562
1865
  end
1563
1866
 
1564
1867
  def test_suppression_spam_reports_get
1565
1868
  params = JSON.parse('{"start_time": 1, "limit": 1, "end_time": 1, "offset": 1}')
1566
1869
  headers = JSON.parse('{"X-Mock": 200}')
1870
+
1567
1871
  response = @sg.client.suppression.spam_reports.get(query_params: params, request_headers: headers)
1568
- self.assert_equal(response.status_code, "200")
1872
+
1873
+ self.assert_equal('200', response.status_code)
1569
1874
  end
1570
1875
 
1571
1876
  def test_suppression_spam_reports_delete
@@ -1577,15 +1882,19 @@ class TestAPI < Minitest::Test
1577
1882
  ]
1578
1883
  }')
1579
1884
  headers = JSON.parse('{"X-Mock": 204}')
1885
+
1580
1886
  response = @sg.client.suppression.spam_reports.delete(request_body: data, request_headers: headers)
1581
- self.assert_equal(response.status_code, "204")
1887
+
1888
+ self.assert_equal('204', response.status_code)
1582
1889
  end
1583
1890
 
1584
1891
  def test_suppression_unsubscribes_get
1585
1892
  params = JSON.parse('{"start_time": 1, "limit": 1, "end_time": 1, "offset": 1}')
1586
1893
  headers = JSON.parse('{"X-Mock": 200}')
1894
+
1587
1895
  response = @sg.client.suppression.unsubscribes.get(query_params: params, request_headers: headers)
1588
- self.assert_equal(response.status_code, "200")
1896
+
1897
+ self.assert_equal('200', response.status_code)
1589
1898
  end
1590
1899
 
1591
1900
  def test_templates_post
@@ -1593,14 +1902,18 @@ class TestAPI < Minitest::Test
1593
1902
  "name": "example_name"
1594
1903
  }')
1595
1904
  headers = JSON.parse('{"X-Mock": 201}')
1905
+
1596
1906
  response = @sg.client.templates.post(request_body: data, request_headers: headers)
1597
- self.assert_equal(response.status_code, "201")
1907
+
1908
+ self.assert_equal('201', response.status_code)
1598
1909
  end
1599
1910
 
1600
1911
  def test_templates_get
1601
1912
  headers = JSON.parse('{"X-Mock": 200}')
1913
+
1602
1914
  response = @sg.client.templates.get(request_headers: headers)
1603
- self.assert_equal(response.status_code, "200")
1915
+
1916
+ self.assert_equal('200', response.status_code)
1604
1917
  end
1605
1918
 
1606
1919
  def test_templates__template_id__patch
@@ -1609,22 +1922,28 @@ class TestAPI < Minitest::Test
1609
1922
  }')
1610
1923
  template_id = "test_url_param"
1611
1924
  headers = JSON.parse('{"X-Mock": 200}')
1925
+
1612
1926
  response = @sg.client.templates._(template_id).patch(request_body: data, request_headers: headers)
1613
- self.assert_equal(response.status_code, "200")
1927
+
1928
+ self.assert_equal('200', response.status_code)
1614
1929
  end
1615
1930
 
1616
1931
  def test_templates__template_id__get
1617
1932
  template_id = "test_url_param"
1618
1933
  headers = JSON.parse('{"X-Mock": 200}')
1934
+
1619
1935
  response = @sg.client.templates._(template_id).get(request_headers: headers)
1620
- self.assert_equal(response.status_code, "200")
1936
+
1937
+ self.assert_equal('200', response.status_code)
1621
1938
  end
1622
1939
 
1623
1940
  def test_templates__template_id__delete
1624
1941
  template_id = "test_url_param"
1625
1942
  headers = JSON.parse('{"X-Mock": 204}')
1943
+
1626
1944
  response = @sg.client.templates._(template_id).delete(request_headers: headers)
1627
- self.assert_equal(response.status_code, "204")
1945
+
1946
+ self.assert_equal('204', response.status_code)
1628
1947
  end
1629
1948
 
1630
1949
  def test_templates__template_id__versions_post
@@ -1638,8 +1957,10 @@ class TestAPI < Minitest::Test
1638
1957
  }')
1639
1958
  template_id = "test_url_param"
1640
1959
  headers = JSON.parse('{"X-Mock": 201}')
1960
+
1641
1961
  response = @sg.client.templates._(template_id).versions.post(request_body: data, request_headers: headers)
1642
- self.assert_equal(response.status_code, "201")
1962
+
1963
+ self.assert_equal('201', response.status_code)
1643
1964
  end
1644
1965
 
1645
1966
  def test_templates__template_id__versions__version_id__patch
@@ -1653,39 +1974,49 @@ class TestAPI < Minitest::Test
1653
1974
  template_id = "test_url_param"
1654
1975
  version_id = "test_url_param"
1655
1976
  headers = JSON.parse('{"X-Mock": 200}')
1977
+
1656
1978
  response = @sg.client.templates._(template_id).versions._(version_id).patch(request_body: data, request_headers: headers)
1657
- self.assert_equal(response.status_code, "200")
1979
+
1980
+ self.assert_equal('200', response.status_code)
1658
1981
  end
1659
1982
 
1660
1983
  def test_templates__template_id__versions__version_id__get
1661
1984
  template_id = "test_url_param"
1662
1985
  version_id = "test_url_param"
1663
1986
  headers = JSON.parse('{"X-Mock": 200}')
1987
+
1664
1988
  response = @sg.client.templates._(template_id).versions._(version_id).get(request_headers: headers)
1665
- self.assert_equal(response.status_code, "200")
1989
+
1990
+ self.assert_equal('200', response.status_code)
1666
1991
  end
1667
1992
 
1668
1993
  def test_templates__template_id__versions__version_id__delete
1669
1994
  template_id = "test_url_param"
1670
1995
  version_id = "test_url_param"
1671
1996
  headers = JSON.parse('{"X-Mock": 204}')
1997
+
1672
1998
  response = @sg.client.templates._(template_id).versions._(version_id).delete(request_headers: headers)
1673
- self.assert_equal(response.status_code, "204")
1999
+
2000
+ self.assert_equal('204', response.status_code)
1674
2001
  end
1675
2002
 
1676
2003
  def test_templates__template_id__versions__version_id__activate_post
1677
2004
  template_id = "test_url_param"
1678
2005
  version_id = "test_url_param"
1679
2006
  headers = JSON.parse('{"X-Mock": 200}')
2007
+
1680
2008
  response = @sg.client.templates._(template_id).versions._(version_id).activate.post(request_headers: headers)
1681
- self.assert_equal(response.status_code, "200")
2009
+
2010
+ self.assert_equal('200', response.status_code)
1682
2011
  end
1683
2012
 
1684
2013
  def test_tracking_settings_get
1685
2014
  params = JSON.parse('{"limit": 1, "offset": 1}')
1686
2015
  headers = JSON.parse('{"X-Mock": 200}')
2016
+
1687
2017
  response = @sg.client.tracking_settings.get(query_params: params, request_headers: headers)
1688
- self.assert_equal(response.status_code, "200")
2018
+
2019
+ self.assert_equal('200', response.status_code)
1689
2020
  end
1690
2021
 
1691
2022
  def test_tracking_settings_click_patch
@@ -1693,14 +2024,18 @@ class TestAPI < Minitest::Test
1693
2024
  "enabled": true
1694
2025
  }')
1695
2026
  headers = JSON.parse('{"X-Mock": 200}')
2027
+
1696
2028
  response = @sg.client.tracking_settings.click.patch(request_body: data, request_headers: headers)
1697
- self.assert_equal(response.status_code, "200")
2029
+
2030
+ self.assert_equal('200', response.status_code)
1698
2031
  end
1699
2032
 
1700
2033
  def test_tracking_settings_click_get
1701
2034
  headers = JSON.parse('{"X-Mock": 200}')
2035
+
1702
2036
  response = @sg.client.tracking_settings.click.get(request_headers: headers)
1703
- self.assert_equal(response.status_code, "200")
2037
+
2038
+ self.assert_equal('200', response.status_code)
1704
2039
  end
1705
2040
 
1706
2041
  def test_tracking_settings_google_analytics_patch
@@ -1713,14 +2048,18 @@ class TestAPI < Minitest::Test
1713
2048
  "utm_term": ""
1714
2049
  }')
1715
2050
  headers = JSON.parse('{"X-Mock": 200}')
2051
+
1716
2052
  response = @sg.client.tracking_settings.google_analytics.patch(request_body: data, request_headers: headers)
1717
- self.assert_equal(response.status_code, "200")
2053
+
2054
+ self.assert_equal('200', response.status_code)
1718
2055
  end
1719
2056
 
1720
2057
  def test_tracking_settings_google_analytics_get
1721
2058
  headers = JSON.parse('{"X-Mock": 200}')
2059
+
1722
2060
  response = @sg.client.tracking_settings.google_analytics.get(request_headers: headers)
1723
- self.assert_equal(response.status_code, "200")
2061
+
2062
+ self.assert_equal('200', response.status_code)
1724
2063
  end
1725
2064
 
1726
2065
  def test_tracking_settings_open_patch
@@ -1728,14 +2067,18 @@ class TestAPI < Minitest::Test
1728
2067
  "enabled": true
1729
2068
  }')
1730
2069
  headers = JSON.parse('{"X-Mock": 200}')
2070
+
1731
2071
  response = @sg.client.tracking_settings.open.patch(request_body: data, request_headers: headers)
1732
- self.assert_equal(response.status_code, "200")
2072
+
2073
+ self.assert_equal('200', response.status_code)
1733
2074
  end
1734
2075
 
1735
2076
  def test_tracking_settings_open_get
1736
2077
  headers = JSON.parse('{"X-Mock": 200}')
2078
+
1737
2079
  response = @sg.client.tracking_settings.open.get(request_headers: headers)
1738
- self.assert_equal(response.status_code, "200")
2080
+
2081
+ self.assert_equal('200', response.status_code)
1739
2082
  end
1740
2083
 
1741
2084
  def test_tracking_settings_subscription_patch
@@ -1748,26 +2091,34 @@ class TestAPI < Minitest::Test
1748
2091
  "url": "url"
1749
2092
  }')
1750
2093
  headers = JSON.parse('{"X-Mock": 200}')
2094
+
1751
2095
  response = @sg.client.tracking_settings.subscription.patch(request_body: data, request_headers: headers)
1752
- self.assert_equal(response.status_code, "200")
2096
+
2097
+ self.assert_equal('200', response.status_code)
1753
2098
  end
1754
2099
 
1755
2100
  def test_tracking_settings_subscription_get
1756
2101
  headers = JSON.parse('{"X-Mock": 200}')
2102
+
1757
2103
  response = @sg.client.tracking_settings.subscription.get(request_headers: headers)
1758
- self.assert_equal(response.status_code, "200")
2104
+
2105
+ self.assert_equal('200', response.status_code)
1759
2106
  end
1760
2107
 
1761
2108
  def test_user_account_get
1762
2109
  headers = JSON.parse('{"X-Mock": 200}')
2110
+
1763
2111
  response = @sg.client.user.account.get(request_headers: headers)
1764
- self.assert_equal(response.status_code, "200")
2112
+
2113
+ self.assert_equal('200', response.status_code)
1765
2114
  end
1766
2115
 
1767
2116
  def test_user_credits_get
1768
2117
  headers = JSON.parse('{"X-Mock": 200}')
2118
+
1769
2119
  response = @sg.client.user.credits.get(request_headers: headers)
1770
- self.assert_equal(response.status_code, "200")
2120
+
2121
+ self.assert_equal('200', response.status_code)
1771
2122
  end
1772
2123
 
1773
2124
  def test_user_email_put
@@ -1775,14 +2126,18 @@ class TestAPI < Minitest::Test
1775
2126
  "email": "example@example.com"
1776
2127
  }')
1777
2128
  headers = JSON.parse('{"X-Mock": 200}')
2129
+
1778
2130
  response = @sg.client.user.email.put(request_body: data, request_headers: headers)
1779
- self.assert_equal(response.status_code, "200")
2131
+
2132
+ self.assert_equal('200', response.status_code)
1780
2133
  end
1781
2134
 
1782
2135
  def test_user_email_get
1783
2136
  headers = JSON.parse('{"X-Mock": 200}')
2137
+
1784
2138
  response = @sg.client.user.email.get(request_headers: headers)
1785
- self.assert_equal(response.status_code, "200")
2139
+
2140
+ self.assert_equal('200', response.status_code)
1786
2141
  end
1787
2142
 
1788
2143
  def test_user_password_put
@@ -1791,8 +2146,10 @@ class TestAPI < Minitest::Test
1791
2146
  "old_password": "old_password"
1792
2147
  }')
1793
2148
  headers = JSON.parse('{"X-Mock": 200}')
2149
+
1794
2150
  response = @sg.client.user.password.put(request_body: data, request_headers: headers)
1795
- self.assert_equal(response.status_code, "200")
2151
+
2152
+ self.assert_equal('200', response.status_code)
1796
2153
  end
1797
2154
 
1798
2155
  def test_user_profile_patch
@@ -1802,14 +2159,18 @@ class TestAPI < Minitest::Test
1802
2159
  "last_name": "User"
1803
2160
  }')
1804
2161
  headers = JSON.parse('{"X-Mock": 200}')
2162
+
1805
2163
  response = @sg.client.user.profile.patch(request_body: data, request_headers: headers)
1806
- self.assert_equal(response.status_code, "200")
2164
+
2165
+ self.assert_equal('200', response.status_code)
1807
2166
  end
1808
2167
 
1809
2168
  def test_user_profile_get
1810
2169
  headers = JSON.parse('{"X-Mock": 200}')
2170
+
1811
2171
  response = @sg.client.user.profile.get(request_headers: headers)
1812
- self.assert_equal(response.status_code, "200")
2172
+
2173
+ self.assert_equal('200', response.status_code)
1813
2174
  end
1814
2175
 
1815
2176
  def test_user_scheduled_sends_post
@@ -1818,14 +2179,18 @@ class TestAPI < Minitest::Test
1818
2179
  "status": "pause"
1819
2180
  }')
1820
2181
  headers = JSON.parse('{"X-Mock": 201}')
2182
+
1821
2183
  response = @sg.client.user.scheduled_sends.post(request_body: data, request_headers: headers)
1822
- self.assert_equal(response.status_code, "201")
2184
+
2185
+ self.assert_equal('201', response.status_code)
1823
2186
  end
1824
2187
 
1825
2188
  def test_user_scheduled_sends_get
1826
2189
  headers = JSON.parse('{"X-Mock": 200}')
2190
+
1827
2191
  response = @sg.client.user.scheduled_sends.get(request_headers: headers)
1828
- self.assert_equal(response.status_code, "200")
2192
+
2193
+ self.assert_equal('200', response.status_code)
1829
2194
  end
1830
2195
 
1831
2196
  def test_user_scheduled_sends__batch_id__patch
@@ -1834,22 +2199,28 @@ class TestAPI < Minitest::Test
1834
2199
  }')
1835
2200
  batch_id = "test_url_param"
1836
2201
  headers = JSON.parse('{"X-Mock": 204}')
2202
+
1837
2203
  response = @sg.client.user.scheduled_sends._(batch_id).patch(request_body: data, request_headers: headers)
1838
- self.assert_equal(response.status_code, "204")
2204
+
2205
+ self.assert_equal('204', response.status_code)
1839
2206
  end
1840
2207
 
1841
2208
  def test_user_scheduled_sends__batch_id__get
1842
2209
  batch_id = "test_url_param"
1843
2210
  headers = JSON.parse('{"X-Mock": 200}')
2211
+
1844
2212
  response = @sg.client.user.scheduled_sends._(batch_id).get(request_headers: headers)
1845
- self.assert_equal(response.status_code, "200")
2213
+
2214
+ self.assert_equal('200', response.status_code)
1846
2215
  end
1847
2216
 
1848
2217
  def test_user_scheduled_sends__batch_id__delete
1849
2218
  batch_id = "test_url_param"
1850
2219
  headers = JSON.parse('{"X-Mock": 204}')
2220
+
1851
2221
  response = @sg.client.user.scheduled_sends._(batch_id).delete(request_headers: headers)
1852
- self.assert_equal(response.status_code, "204")
2222
+
2223
+ self.assert_equal('204', response.status_code)
1853
2224
  end
1854
2225
 
1855
2226
  def test_user_settings_enforced_tls_patch
@@ -1858,14 +2229,18 @@ class TestAPI < Minitest::Test
1858
2229
  "require_valid_cert": false
1859
2230
  }')
1860
2231
  headers = JSON.parse('{"X-Mock": 200}')
2232
+
1861
2233
  response = @sg.client.user.settings.enforced_tls.patch(request_body: data, request_headers: headers)
1862
- self.assert_equal(response.status_code, "200")
2234
+
2235
+ self.assert_equal('200', response.status_code)
1863
2236
  end
1864
2237
 
1865
2238
  def test_user_settings_enforced_tls_get
1866
2239
  headers = JSON.parse('{"X-Mock": 200}')
2240
+
1867
2241
  response = @sg.client.user.settings.enforced_tls.get(request_headers: headers)
1868
- self.assert_equal(response.status_code, "200")
2242
+
2243
+ self.assert_equal('200', response.status_code)
1869
2244
  end
1870
2245
 
1871
2246
  def test_user_username_put
@@ -1873,14 +2248,18 @@ class TestAPI < Minitest::Test
1873
2248
  "username": "test_username"
1874
2249
  }')
1875
2250
  headers = JSON.parse('{"X-Mock": 200}')
2251
+
1876
2252
  response = @sg.client.user.username.put(request_body: data, request_headers: headers)
1877
- self.assert_equal(response.status_code, "200")
2253
+
2254
+ self.assert_equal('200', response.status_code)
1878
2255
  end
1879
2256
 
1880
2257
  def test_user_username_get
1881
2258
  headers = JSON.parse('{"X-Mock": 200}')
2259
+
1882
2260
  response = @sg.client.user.username.get(request_headers: headers)
1883
- self.assert_equal(response.status_code, "200")
2261
+
2262
+ self.assert_equal('200', response.status_code)
1884
2263
  end
1885
2264
 
1886
2265
  def test_user_webhooks_event_settings_patch
@@ -1900,14 +2279,18 @@ class TestAPI < Minitest::Test
1900
2279
  "url": "url"
1901
2280
  }')
1902
2281
  headers = JSON.parse('{"X-Mock": 200}')
2282
+
1903
2283
  response = @sg.client.user.webhooks.event.settings.patch(request_body: data, request_headers: headers)
1904
- self.assert_equal(response.status_code, "200")
2284
+
2285
+ self.assert_equal('200', response.status_code)
1905
2286
  end
1906
2287
 
1907
2288
  def test_user_webhooks_event_settings_get
1908
2289
  headers = JSON.parse('{"X-Mock": 200}')
2290
+
1909
2291
  response = @sg.client.user.webhooks.event.settings.get(request_headers: headers)
1910
- self.assert_equal(response.status_code, "200")
2292
+
2293
+ self.assert_equal('200', response.status_code)
1911
2294
  end
1912
2295
 
1913
2296
  def test_user_webhooks_event_test_post
@@ -1915,8 +2298,10 @@ class TestAPI < Minitest::Test
1915
2298
  "url": "url"
1916
2299
  }')
1917
2300
  headers = JSON.parse('{"X-Mock": 204}')
2301
+
1918
2302
  response = @sg.client.user.webhooks.event.test.post(request_body: data, request_headers: headers)
1919
- self.assert_equal(response.status_code, "204")
2303
+
2304
+ self.assert_equal('204', response.status_code)
1920
2305
  end
1921
2306
 
1922
2307
  def test_user_webhooks_parse_settings_post
@@ -1927,14 +2312,18 @@ class TestAPI < Minitest::Test
1927
2312
  "url": "http://email.myhosthame.com"
1928
2313
  }')
1929
2314
  headers = JSON.parse('{"X-Mock": 201}')
2315
+
1930
2316
  response = @sg.client.user.webhooks.parse.settings.post(request_body: data, request_headers: headers)
1931
- self.assert_equal(response.status_code, "201")
2317
+
2318
+ self.assert_equal('201', response.status_code)
1932
2319
  end
1933
2320
 
1934
2321
  def test_user_webhooks_parse_settings_get
1935
2322
  headers = JSON.parse('{"X-Mock": 200}')
2323
+
1936
2324
  response = @sg.client.user.webhooks.parse.settings.get(request_headers: headers)
1937
- self.assert_equal(response.status_code, "200")
2325
+
2326
+ self.assert_equal('200', response.status_code)
1938
2327
  end
1939
2328
 
1940
2329
  def test_user_webhooks_parse_settings__hostname__patch
@@ -1945,29 +2334,37 @@ class TestAPI < Minitest::Test
1945
2334
  }')
1946
2335
  hostname = "test_url_param"
1947
2336
  headers = JSON.parse('{"X-Mock": 200}')
2337
+
1948
2338
  response = @sg.client.user.webhooks.parse.settings._(hostname).patch(request_body: data, request_headers: headers)
1949
- self.assert_equal(response.status_code, "200")
2339
+
2340
+ self.assert_equal('200', response.status_code)
1950
2341
  end
1951
2342
 
1952
2343
  def test_user_webhooks_parse_settings__hostname__get
1953
2344
  hostname = "test_url_param"
1954
2345
  headers = JSON.parse('{"X-Mock": 200}')
2346
+
1955
2347
  response = @sg.client.user.webhooks.parse.settings._(hostname).get(request_headers: headers)
1956
- self.assert_equal(response.status_code, "200")
2348
+
2349
+ self.assert_equal('200', response.status_code)
1957
2350
  end
1958
2351
 
1959
2352
  def test_user_webhooks_parse_settings__hostname__delete
1960
2353
  hostname = "test_url_param"
1961
2354
  headers = JSON.parse('{"X-Mock": 204}')
2355
+
1962
2356
  response = @sg.client.user.webhooks.parse.settings._(hostname).delete(request_headers: headers)
1963
- self.assert_equal(response.status_code, "204")
2357
+
2358
+ self.assert_equal('204', response.status_code)
1964
2359
  end
1965
2360
 
1966
2361
  def test_user_webhooks_parse_stats_get
1967
2362
  params = JSON.parse('{"aggregated_by": "day", "limit": "test_string", "start_date": "2016-01-01", "end_date": "2016-04-01", "offset": "test_string"}')
1968
2363
  headers = JSON.parse('{"X-Mock": 200}')
2364
+
1969
2365
  response = @sg.client.user.webhooks.parse.stats.get(query_params: params, request_headers: headers)
1970
- self.assert_equal(response.status_code, "200")
2366
+
2367
+ self.assert_equal('200', response.status_code)
1971
2368
  end
1972
2369
 
1973
2370
  def test_whitelabel_domains_post
@@ -1984,33 +2381,43 @@ class TestAPI < Minitest::Test
1984
2381
  "username": "john@example.com"
1985
2382
  }')
1986
2383
  headers = JSON.parse('{"X-Mock": 201}')
2384
+
1987
2385
  response = @sg.client.whitelabel.domains.post(request_body: data, request_headers: headers)
1988
- self.assert_equal(response.status_code, "201")
2386
+
2387
+ self.assert_equal('201', response.status_code)
1989
2388
  end
1990
2389
 
1991
2390
  def test_whitelabel_domains_get
1992
2391
  params = JSON.parse('{"username": "test_string", "domain": "test_string", "exclude_subusers": "true", "limit": 1, "offset": 1}')
1993
2392
  headers = JSON.parse('{"X-Mock": 200}')
2393
+
1994
2394
  response = @sg.client.whitelabel.domains.get(query_params: params, request_headers: headers)
1995
- self.assert_equal(response.status_code, "200")
2395
+
2396
+ self.assert_equal('200', response.status_code)
1996
2397
  end
1997
2398
 
1998
2399
  def test_whitelabel_domains_default_get
1999
2400
  headers = JSON.parse('{"X-Mock": 200}')
2401
+
2000
2402
  response = @sg.client.whitelabel.domains.default.get(request_headers: headers)
2001
- self.assert_equal(response.status_code, "200")
2403
+
2404
+ self.assert_equal('200', response.status_code)
2002
2405
  end
2003
2406
 
2004
2407
  def test_whitelabel_domains_subuser_get
2005
2408
  headers = JSON.parse('{"X-Mock": 200}')
2409
+
2006
2410
  response = @sg.client.whitelabel.domains.subuser.get(request_headers: headers)
2007
- self.assert_equal(response.status_code, "200")
2411
+
2412
+ self.assert_equal('200', response.status_code)
2008
2413
  end
2009
2414
 
2010
2415
  def test_whitelabel_domains_subuser_delete
2011
2416
  headers = JSON.parse('{"X-Mock": 204}')
2417
+
2012
2418
  response = @sg.client.whitelabel.domains.subuser.delete(request_headers: headers)
2013
- self.assert_equal(response.status_code, "204")
2419
+
2420
+ self.assert_equal('204', response.status_code)
2014
2421
  end
2015
2422
 
2016
2423
  def test_whitelabel_domains__domain_id__patch
@@ -2020,22 +2427,28 @@ class TestAPI < Minitest::Test
2020
2427
  }')
2021
2428
  domain_id = "test_url_param"
2022
2429
  headers = JSON.parse('{"X-Mock": 200}')
2430
+
2023
2431
  response = @sg.client.whitelabel.domains._(domain_id).patch(request_body: data, request_headers: headers)
2024
- self.assert_equal(response.status_code, "200")
2432
+
2433
+ self.assert_equal('200', response.status_code)
2025
2434
  end
2026
2435
 
2027
2436
  def test_whitelabel_domains__domain_id__get
2028
2437
  domain_id = "test_url_param"
2029
2438
  headers = JSON.parse('{"X-Mock": 200}')
2439
+
2030
2440
  response = @sg.client.whitelabel.domains._(domain_id).get(request_headers: headers)
2031
- self.assert_equal(response.status_code, "200")
2441
+
2442
+ self.assert_equal('200', response.status_code)
2032
2443
  end
2033
2444
 
2034
2445
  def test_whitelabel_domains__domain_id__delete
2035
2446
  domain_id = "test_url_param"
2036
2447
  headers = JSON.parse('{"X-Mock": 204}')
2448
+
2037
2449
  response = @sg.client.whitelabel.domains._(domain_id).delete(request_headers: headers)
2038
- self.assert_equal(response.status_code, "204")
2450
+
2451
+ self.assert_equal('204', response.status_code)
2039
2452
  end
2040
2453
 
2041
2454
  def test_whitelabel_domains__domain_id__subuser_post
@@ -2044,8 +2457,10 @@ class TestAPI < Minitest::Test
2044
2457
  }')
2045
2458
  domain_id = "test_url_param"
2046
2459
  headers = JSON.parse('{"X-Mock": 201}')
2460
+
2047
2461
  response = @sg.client.whitelabel.domains._(domain_id).subuser.post(request_body: data, request_headers: headers)
2048
- self.assert_equal(response.status_code, "201")
2462
+
2463
+ self.assert_equal('201', response.status_code)
2049
2464
  end
2050
2465
 
2051
2466
  def test_whitelabel_domains__id__ips_post
@@ -2054,23 +2469,29 @@ class TestAPI < Minitest::Test
2054
2469
  }')
2055
2470
  id = "test_url_param"
2056
2471
  headers = JSON.parse('{"X-Mock": 200}')
2472
+
2057
2473
  response = @sg.client.whitelabel.domains._(id).ips.post(request_body: data, request_headers: headers)
2058
- self.assert_equal(response.status_code, "200")
2474
+
2475
+ self.assert_equal('200', response.status_code)
2059
2476
  end
2060
2477
 
2061
2478
  def test_whitelabel_domains__id__ips__ip__delete
2062
2479
  id = "test_url_param"
2063
2480
  ip = "test_url_param"
2064
2481
  headers = JSON.parse('{"X-Mock": 200}')
2482
+
2065
2483
  response = @sg.client.whitelabel.domains._(id).ips._(ip).delete(request_headers: headers)
2066
- self.assert_equal(response.status_code, "200")
2484
+
2485
+ self.assert_equal('200', response.status_code)
2067
2486
  end
2068
2487
 
2069
2488
  def test_whitelabel_domains__id__validate_post
2070
2489
  id = "test_url_param"
2071
2490
  headers = JSON.parse('{"X-Mock": 200}')
2491
+
2072
2492
  response = @sg.client.whitelabel.domains._(id).validate.post(request_headers: headers)
2073
- self.assert_equal(response.status_code, "200")
2493
+
2494
+ self.assert_equal('200', response.status_code)
2074
2495
  end
2075
2496
 
2076
2497
  def test_whitelabel_ips_post
@@ -2080,36 +2501,46 @@ class TestAPI < Minitest::Test
2080
2501
  "subdomain": "email"
2081
2502
  }')
2082
2503
  headers = JSON.parse('{"X-Mock": 201}')
2504
+
2083
2505
  response = @sg.client.whitelabel.ips.post(request_body: data, request_headers: headers)
2084
- self.assert_equal(response.status_code, "201")
2506
+
2507
+ self.assert_equal('201', response.status_code)
2085
2508
  end
2086
2509
 
2087
2510
  def test_whitelabel_ips_get
2088
2511
  params = JSON.parse('{"ip": "test_string", "limit": 1, "offset": 1}')
2089
2512
  headers = JSON.parse('{"X-Mock": 200}')
2513
+
2090
2514
  response = @sg.client.whitelabel.ips.get(query_params: params, request_headers: headers)
2091
- self.assert_equal(response.status_code, "200")
2515
+
2516
+ self.assert_equal('200', response.status_code)
2092
2517
  end
2093
2518
 
2094
2519
  def test_whitelabel_ips__id__get
2095
2520
  id = "test_url_param"
2096
2521
  headers = JSON.parse('{"X-Mock": 200}')
2522
+
2097
2523
  response = @sg.client.whitelabel.ips._(id).get(request_headers: headers)
2098
- self.assert_equal(response.status_code, "200")
2524
+
2525
+ self.assert_equal('200', response.status_code)
2099
2526
  end
2100
2527
 
2101
2528
  def test_whitelabel_ips__id__delete
2102
2529
  id = "test_url_param"
2103
2530
  headers = JSON.parse('{"X-Mock": 204}')
2531
+
2104
2532
  response = @sg.client.whitelabel.ips._(id).delete(request_headers: headers)
2105
- self.assert_equal(response.status_code, "204")
2533
+
2534
+ self.assert_equal('204', response.status_code)
2106
2535
  end
2107
2536
 
2108
2537
  def test_whitelabel_ips__id__validate_post
2109
2538
  id = "test_url_param"
2110
2539
  headers = JSON.parse('{"X-Mock": 200}')
2540
+
2111
2541
  response = @sg.client.whitelabel.ips._(id).validate.post(request_headers: headers)
2112
- self.assert_equal(response.status_code, "200")
2542
+
2543
+ self.assert_equal('200', response.status_code)
2113
2544
  end
2114
2545
 
2115
2546
  def test_whitelabel_links_post
@@ -2120,36 +2551,46 @@ class TestAPI < Minitest::Test
2120
2551
  }')
2121
2552
  params = JSON.parse('{"limit": 1, "offset": 1}')
2122
2553
  headers = JSON.parse('{"X-Mock": 201}')
2554
+
2123
2555
  response = @sg.client.whitelabel.links.post(request_body: data, query_params: params, request_headers: headers)
2124
- self.assert_equal(response.status_code, "201")
2556
+
2557
+ self.assert_equal('201', response.status_code)
2125
2558
  end
2126
2559
 
2127
2560
  def test_whitelabel_links_get
2128
2561
  params = JSON.parse('{"limit": 1}')
2129
2562
  headers = JSON.parse('{"X-Mock": 200}')
2563
+
2130
2564
  response = @sg.client.whitelabel.links.get(query_params: params, request_headers: headers)
2131
- self.assert_equal(response.status_code, "200")
2565
+
2566
+ self.assert_equal('200', response.status_code)
2132
2567
  end
2133
2568
 
2134
2569
  def test_whitelabel_links_default_get
2135
2570
  params = JSON.parse('{"domain": "test_string"}')
2136
2571
  headers = JSON.parse('{"X-Mock": 200}')
2572
+
2137
2573
  response = @sg.client.whitelabel.links.default.get(query_params: params, request_headers: headers)
2138
- self.assert_equal(response.status_code, "200")
2574
+
2575
+ self.assert_equal('200', response.status_code)
2139
2576
  end
2140
2577
 
2141
2578
  def test_whitelabel_links_subuser_get
2142
2579
  params = JSON.parse('{"username": "test_string"}')
2143
2580
  headers = JSON.parse('{"X-Mock": 200}')
2581
+
2144
2582
  response = @sg.client.whitelabel.links.subuser.get(query_params: params, request_headers: headers)
2145
- self.assert_equal(response.status_code, "200")
2583
+
2584
+ self.assert_equal('200', response.status_code)
2146
2585
  end
2147
2586
 
2148
2587
  def test_whitelabel_links_subuser_delete
2149
2588
  params = JSON.parse('{"username": "test_string"}')
2150
2589
  headers = JSON.parse('{"X-Mock": 204}')
2590
+
2151
2591
  response = @sg.client.whitelabel.links.subuser.delete(query_params: params, request_headers: headers)
2152
- self.assert_equal(response.status_code, "204")
2592
+
2593
+ self.assert_equal('204', response.status_code)
2153
2594
  end
2154
2595
 
2155
2596
  def test_whitelabel_links__id__patch
@@ -2158,29 +2599,37 @@ class TestAPI < Minitest::Test
2158
2599
  }')
2159
2600
  id = "test_url_param"
2160
2601
  headers = JSON.parse('{"X-Mock": 200}')
2602
+
2161
2603
  response = @sg.client.whitelabel.links._(id).patch(request_body: data, request_headers: headers)
2162
- self.assert_equal(response.status_code, "200")
2604
+
2605
+ self.assert_equal('200', response.status_code)
2163
2606
  end
2164
2607
 
2165
2608
  def test_whitelabel_links__id__get
2166
2609
  id = "test_url_param"
2167
2610
  headers = JSON.parse('{"X-Mock": 200}')
2611
+
2168
2612
  response = @sg.client.whitelabel.links._(id).get(request_headers: headers)
2169
- self.assert_equal(response.status_code, "200")
2613
+
2614
+ self.assert_equal('200', response.status_code)
2170
2615
  end
2171
2616
 
2172
2617
  def test_whitelabel_links__id__delete
2173
2618
  id = "test_url_param"
2174
2619
  headers = JSON.parse('{"X-Mock": 204}')
2620
+
2175
2621
  response = @sg.client.whitelabel.links._(id).delete(request_headers: headers)
2176
- self.assert_equal(response.status_code, "204")
2622
+
2623
+ self.assert_equal('204', response.status_code)
2177
2624
  end
2178
2625
 
2179
2626
  def test_whitelabel_links__id__validate_post
2180
2627
  id = "test_url_param"
2181
2628
  headers = JSON.parse('{"X-Mock": 200}')
2629
+
2182
2630
  response = @sg.client.whitelabel.links._(id).validate.post(request_headers: headers)
2183
- self.assert_equal(response.status_code, "200")
2631
+
2632
+ self.assert_equal('200', response.status_code)
2184
2633
  end
2185
2634
 
2186
2635
  def test_whitelabel_links__link_id__subuser_post
@@ -2189,7 +2638,9 @@ class TestAPI < Minitest::Test
2189
2638
  }')
2190
2639
  link_id = "test_url_param"
2191
2640
  headers = JSON.parse('{"X-Mock": 200}')
2641
+
2192
2642
  response = @sg.client.whitelabel.links._(link_id).subuser.post(request_body: data, request_headers: headers)
2193
- self.assert_equal(response.status_code, "200")
2643
+
2644
+ self.assert_equal('200', response.status_code)
2194
2645
  end
2195
2646
  end