aylien_news_api 0.4.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +1 -1
  4. data/Rakefile +8 -0
  5. data/aylien_news_api.gemspec +17 -13
  6. data/docs/DefaultApi.md +897 -611
  7. data/docs/StoryLinks.md +1 -0
  8. data/lib/aylien_news_api.rb +15 -13
  9. data/lib/aylien_news_api/api/default_api.rb +861 -344
  10. data/lib/aylien_news_api/api_client.rb +18 -15
  11. data/lib/aylien_news_api/api_error.rb +22 -18
  12. data/lib/aylien_news_api/configuration.rb +15 -13
  13. data/lib/aylien_news_api/models/author.rb +15 -13
  14. data/lib/aylien_news_api/models/autocomplete.rb +15 -13
  15. data/lib/aylien_news_api/models/autocompletes.rb +15 -13
  16. data/lib/aylien_news_api/models/category.rb +15 -13
  17. data/lib/aylien_news_api/models/category_links.rb +15 -13
  18. data/lib/aylien_news_api/models/coverages.rb +15 -13
  19. data/lib/aylien_news_api/models/entities.rb +15 -13
  20. data/lib/aylien_news_api/models/entity.rb +25 -23
  21. data/lib/aylien_news_api/models/entity_links.rb +15 -13
  22. data/lib/aylien_news_api/models/error.rb +15 -13
  23. data/lib/aylien_news_api/models/error_links.rb +15 -13
  24. data/lib/aylien_news_api/models/errors.rb +15 -13
  25. data/lib/aylien_news_api/models/histogram_interval.rb +15 -13
  26. data/lib/aylien_news_api/models/histograms.rb +15 -13
  27. data/lib/aylien_news_api/models/location.rb +15 -13
  28. data/lib/aylien_news_api/models/media.rb +15 -13
  29. data/lib/aylien_news_api/models/rank.rb +15 -13
  30. data/lib/aylien_news_api/models/rankings.rb +15 -13
  31. data/lib/aylien_news_api/models/related_stories.rb +15 -13
  32. data/lib/aylien_news_api/models/scope.rb +15 -13
  33. data/lib/aylien_news_api/models/sentiment.rb +25 -23
  34. data/lib/aylien_news_api/models/sentiments.rb +15 -13
  35. data/lib/aylien_news_api/models/share_count.rb +15 -13
  36. data/lib/aylien_news_api/models/share_counts.rb +15 -13
  37. data/lib/aylien_news_api/models/source.rb +15 -13
  38. data/lib/aylien_news_api/models/stories.rb +15 -13
  39. data/lib/aylien_news_api/models/story.rb +15 -13
  40. data/lib/aylien_news_api/models/story_cluster.rb +15 -13
  41. data/lib/aylien_news_api/models/story_links.rb +29 -17
  42. data/lib/aylien_news_api/models/summary.rb +15 -13
  43. data/lib/aylien_news_api/models/time_series.rb +15 -13
  44. data/lib/aylien_news_api/models/time_series_list.rb +15 -13
  45. data/lib/aylien_news_api/models/trend.rb +15 -13
  46. data/lib/aylien_news_api/models/trends.rb +15 -13
  47. data/lib/aylien_news_api/version.rb +16 -14
  48. data/spec/api/default_api_spec.rb +463 -189
  49. data/spec/api_client_spec.rb +25 -101
  50. data/spec/configuration_spec.rb +26 -19
  51. data/spec/models/author_spec.rb +19 -29
  52. data/spec/models/autocomplete_spec.rb +18 -24
  53. data/spec/models/autocompletes_spec.rb +17 -19
  54. data/spec/models/category_links_spec.rb +18 -24
  55. data/spec/models/category_spec.rb +26 -44
  56. data/spec/models/coverages_spec.rb +27 -39
  57. data/spec/models/entities_spec.rb +18 -24
  58. data/spec/models/entity_links_spec.rb +17 -19
  59. data/spec/models/entity_spec.rb +21 -39
  60. data/spec/models/error_links_spec.rb +17 -19
  61. data/spec/models/error_spec.rb +22 -44
  62. data/spec/models/errors_spec.rb +17 -19
  63. data/spec/models/histogram_interval_spec.rb +18 -24
  64. data/spec/models/histograms_spec.rb +21 -39
  65. data/spec/models/location_spec.rb +19 -29
  66. data/spec/models/media_spec.rb +50 -24
  67. data/spec/models/rank_spec.rb +15 -13
  68. data/spec/models/rankings_spec.rb +15 -13
  69. data/spec/models/related_stories_spec.rb +26 -34
  70. data/spec/models/scope_spec.rb +24 -34
  71. data/spec/models/sentiment_spec.rb +22 -24
  72. data/spec/models/sentiments_spec.rb +18 -24
  73. data/spec/models/share_count_spec.rb +18 -24
  74. data/spec/models/share_counts_spec.rb +20 -34
  75. data/spec/models/source_spec.rb +52 -44
  76. data/spec/models/stories_spec.rb +19 -29
  77. data/spec/models/story_cluster_spec.rb +21 -39
  78. data/spec/models/story_links_spec.rb +25 -29
  79. data/spec/models/story_spec.rb +36 -114
  80. data/spec/models/summary_spec.rb +17 -19
  81. data/spec/models/time_series_list_spec.rb +20 -34
  82. data/spec/models/time_series_spec.rb +18 -24
  83. data/spec/models/trend_spec.rb +18 -24
  84. data/spec/models/trends_spec.rb +18 -24
  85. data/spec/spec_helper.rb +15 -13
  86. metadata +25 -8
  87. data/Gemfile.lock +0 -65
  88. data/LICENSE +0 -13
  89. data/aylien_news_api-0.2.0.gem +0 -0
  90. data/aylien_news_api-0.3.0.gem +0 -0
@@ -1,16 +1,18 @@
1
- # Copyright 2016 Aylien, Inc. All Rights Reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
1
+ =begin
2
+ Copyright 2017 Aylien, Inc. All Rights Reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ =end
14
16
 
15
17
  require 'spec_helper'
16
18
 
@@ -53,53 +55,6 @@ describe AylienNewsApi::ApiClient do
53
55
  end
54
56
  end
55
57
 
56
- describe "#update_params_for_auth!" do
57
- it "sets header api-key parameter with prefix" do
58
- AylienNewsApi.configure do |c|
59
- c.api_key_prefix['X-AYLIEN-NewsAPI-Application-ID'] = 'PREFIX'
60
- c.api_key['X-AYLIEN-NewsAPI-Application-ID'] = 'special-key'
61
- end
62
-
63
- api_client = AylienNewsApi::ApiClient.new
64
-
65
- config2 = AylienNewsApi::Configuration.new do |c|
66
- c.api_key_prefix['X-AYLIEN-NewsAPI-Application-ID'] = 'PREFIX2'
67
- c.api_key['X-AYLIEN-NewsAPI-Application-ID'] = 'special-key2'
68
- end
69
- api_client2 = AylienNewsApi::ApiClient.new(config2)
70
-
71
- auth_names = ['app_id']
72
-
73
- header_params = {}
74
- query_params = {}
75
- api_client.update_params_for_auth! header_params, query_params, auth_names
76
- expect(header_params).to eq({'X-AYLIEN-NewsAPI-Application-ID' => 'PREFIX special-key'})
77
- expect(query_params).to eq({})
78
-
79
- header_params = {}
80
- query_params = {}
81
- api_client2.update_params_for_auth! header_params, query_params, auth_names
82
- expect(header_params).to eq({'X-AYLIEN-NewsAPI-Application-ID' => 'PREFIX2 special-key2'})
83
- expect(query_params).to eq({})
84
- end
85
-
86
- it "sets header api-key parameter without prefix" do
87
- AylienNewsApi.configure do |c|
88
- c.api_key_prefix['X-AYLIEN-NewsAPI-Application-ID'] = nil
89
- c.api_key['X-AYLIEN-NewsAPI-Application-ID'] = 'special-key'
90
- end
91
-
92
- api_client = AylienNewsApi::ApiClient.new
93
-
94
- header_params = {}
95
- query_params = {}
96
- auth_names = ['app_id']
97
- api_client.update_params_for_auth! header_params, query_params, auth_names
98
- expect(header_params).to eq({'X-AYLIEN-NewsAPI-Application-ID' => 'special-key'})
99
- expect(query_params).to eq({})
100
- end
101
- end
102
-
103
58
  describe "params_encoding in #build_request" do
104
59
  let(:config) { AylienNewsApi::Configuration.new }
105
60
  let(:api_client) { AylienNewsApi::ApiClient.new(config) }
@@ -113,9 +68,9 @@ describe AylienNewsApi::ApiClient do
113
68
  end
114
69
 
115
70
  it "can be customized" do
116
- config.params_encoding = nil
71
+ config.params_encoding = :multi
117
72
  request = api_client.build_request(:get, '/test')
118
- expect(request.options[:params_encoding]).to eq(nil)
73
+ expect(request.options[:params_encoding]).to eq(:multi)
119
74
  end
120
75
  end
121
76
 
@@ -165,49 +120,18 @@ describe AylienNewsApi::ApiClient do
165
120
  expect(data).to be_instance_of(Hash)
166
121
  expect(data).to eq({:message => 'Hello'})
167
122
  end
168
-
169
- it "handles Hash<String, Story>" do
170
- api_client = AylienNewsApi::ApiClient.new
171
- headers = {'Content-Type' => 'application/json'}
172
- response = double('response', headers: headers, body: '{"story": {"id": 1}}')
173
- data = api_client.deserialize(response, 'Hash<String, Story>')
174
- expect(data).to be_instance_of(Hash)
175
- expect(data.keys).to eq([:story])
176
-
177
- story = data[:story]
178
- expect(story).to be_instance_of(AylienNewsApi::Story)
179
- expect(story.id).to eq(1)
180
- end
181
-
182
- it "handles Hash<String, Hash<String, Story>>" do
183
- api_client = AylienNewsApi::ApiClient.new
184
- headers = {'Content-Type' => 'application/json'}
185
- response = double('response', headers: headers, body: '{"data": {"story": {"id": 1}}}')
186
- result = api_client.deserialize(response, 'Hash<String, Hash<String, Story>>')
187
- expect(result).to be_instance_of(Hash)
188
- expect(result.keys).to match_array([:data])
189
-
190
- data = result[:data]
191
- expect(data).to be_instance_of(Hash)
192
- expect(data.keys).to match_array([:story])
193
-
194
- story = data[:story]
195
- expect(story).to be_instance_of(AylienNewsApi::Story)
196
- expect(story.id).to eq(1)
197
- end
198
123
  end
199
124
 
200
125
  describe "#object_to_hash" do
201
126
  it "ignores nils and includes empty arrays" do
202
- api_client = AylienNewsApi::ApiClient.new
203
- story = AylienNewsApi::Story.new
204
- story.id = 1
205
- story.title = ''
206
- story.published_at = nil
207
- story.body = nil
208
- story.hashtags = []
209
- expected = {id: 1, title: '', hashtags: []}
210
- expect(api_client.object_to_hash(story)).to eq(expected)
127
+ # uncomment below to test object_to_hash for model
128
+ #api_client = AylienNewsApi::ApiClient.new
129
+ #_model = AylienNewsApi::ModelName.new
130
+ # update the model attribute below
131
+ #_model.id = 1
132
+ # update the expected value (hash) below
133
+ #expected = {id: 1, name: '', tags: []}
134
+ #expect(api_client.object_to_hash(_model)).to eq(expected)
211
135
  end
212
136
  end
213
137
 
@@ -1,16 +1,18 @@
1
- # Copyright 2016 Aylien, Inc. All Rights Reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
1
+ =begin
2
+ Copyright 2017 Aylien, Inc. All Rights Reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ =end
14
16
 
15
17
  require 'spec_helper'
16
18
 
@@ -18,21 +20,26 @@ describe AylienNewsApi::Configuration do
18
20
  let(:config) { AylienNewsApi::Configuration.default }
19
21
 
20
22
  before(:each) do
21
- AylienNewsApi.configure do |c|
22
- c.host = 'api.newsapi.aylien.com'
23
- c.base_path = 'v1'
24
- end
23
+ # uncomment below to setup host and base_path
24
+ #require 'URI'
25
+ #uri = URI.parse("https://api.newsapi.aylien.com/api/v1")
26
+ #AylienNewsApi.configure do |c|
27
+ # c.host = uri.host
28
+ # c.base_path = uri.path
29
+ #end
25
30
  end
26
31
 
27
32
  describe '#base_url' do
28
33
  it 'should have the default value' do
29
- expect(config.base_url).to eq('https://api.newsapi.aylien.com/v1')
34
+ # uncomment below to test default value of the base path
35
+ #expect(config.base_url).to eq("https://api.newsapi.aylien.com/api/v1")
30
36
  end
31
37
 
32
38
  it 'should remove trailing slashes' do
33
39
  [nil, '', '/', '//'].each do |base_path|
34
40
  config.base_path = base_path
35
- expect(config.base_url).to eq('https://api.newsapi.aylien.com')
41
+ # uncomment below to test trailing slashes
42
+ #expect(config.base_url).to eq("https://api.newsapi.aylien.com/api/v1")
36
43
  end
37
44
  end
38
45
  end
@@ -1,16 +1,18 @@
1
- # Copyright 2016 Aylien, Inc. All Rights Reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
1
+ =begin
2
+ Copyright 2017 Aylien, Inc. All Rights Reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ =end
14
16
 
15
17
  require 'spec_helper'
16
18
  require 'json'
@@ -29,36 +31,24 @@ describe 'Author' do
29
31
 
30
32
  describe 'test an instance of Author' do
31
33
  it 'should create an instact of Author' do
32
- @instance.should be_a(AylienNewsApi::Author)
34
+ expect(@instance).to be_instance_of(AylienNewsApi::Author)
33
35
  end
34
36
  end
35
37
  describe 'test attribute "id"' do
36
38
  it 'should work' do
37
- # assertion here
38
- # should be_a()
39
- # should be_nil
40
- # should ==
41
- # should_not ==
39
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
40
  end
43
41
  end
44
42
 
45
43
  describe 'test attribute "name"' do
46
44
  it 'should work' do
47
- # assertion here
48
- # should be_a()
49
- # should be_nil
50
- # should ==
51
- # should_not ==
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
52
46
  end
53
47
  end
54
48
 
55
49
  describe 'test attribute "avatar_url"' do
56
50
  it 'should work' do
57
- # assertion here
58
- # should be_a()
59
- # should be_nil
60
- # should ==
61
- # should_not ==
51
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
52
  end
63
53
  end
64
54
 
@@ -1,16 +1,18 @@
1
- # Copyright 2016 Aylien, Inc. All Rights Reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
1
+ =begin
2
+ Copyright 2017 Aylien, Inc. All Rights Reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ =end
14
16
 
15
17
  require 'spec_helper'
16
18
  require 'json'
@@ -29,26 +31,18 @@ describe 'Autocomplete' do
29
31
 
30
32
  describe 'test an instance of Autocomplete' do
31
33
  it 'should create an instact of Autocomplete' do
32
- @instance.should be_a(AylienNewsApi::Autocomplete)
34
+ expect(@instance).to be_instance_of(AylienNewsApi::Autocomplete)
33
35
  end
34
36
  end
35
37
  describe 'test attribute "id"' do
36
38
  it 'should work' do
37
- # assertion here
38
- # should be_a()
39
- # should be_nil
40
- # should ==
41
- # should_not ==
39
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
40
  end
43
41
  end
44
42
 
45
43
  describe 'test attribute "text"' do
46
44
  it 'should work' do
47
- # assertion here
48
- # should be_a()
49
- # should be_nil
50
- # should ==
51
- # should_not ==
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
52
46
  end
53
47
  end
54
48
 
@@ -1,16 +1,18 @@
1
- # Copyright 2016 Aylien, Inc. All Rights Reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
1
+ =begin
2
+ Copyright 2017 Aylien, Inc. All Rights Reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ =end
14
16
 
15
17
  require 'spec_helper'
16
18
  require 'json'
@@ -29,16 +31,12 @@ describe 'Autocompletes' do
29
31
 
30
32
  describe 'test an instance of Autocompletes' do
31
33
  it 'should create an instact of Autocompletes' do
32
- @instance.should be_a(AylienNewsApi::Autocompletes)
34
+ expect(@instance).to be_instance_of(AylienNewsApi::Autocompletes)
33
35
  end
34
36
  end
35
37
  describe 'test attribute "autocompletes"' do
36
38
  it 'should work' do
37
- # assertion here
38
- # should be_a()
39
- # should be_nil
40
- # should ==
41
- # should_not ==
39
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
40
  end
43
41
  end
44
42
 
@@ -1,16 +1,18 @@
1
- # Copyright 2016 Aylien, Inc. All Rights Reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
1
+ =begin
2
+ Copyright 2017 Aylien, Inc. All Rights Reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ =end
14
16
 
15
17
  require 'spec_helper'
16
18
  require 'json'
@@ -29,26 +31,18 @@ describe 'CategoryLinks' do
29
31
 
30
32
  describe 'test an instance of CategoryLinks' do
31
33
  it 'should create an instact of CategoryLinks' do
32
- @instance.should be_a(AylienNewsApi::CategoryLinks)
34
+ expect(@instance).to be_instance_of(AylienNewsApi::CategoryLinks)
33
35
  end
34
36
  end
35
37
  describe 'test attribute "_self"' do
36
38
  it 'should work' do
37
- # assertion here
38
- # should be_a()
39
- # should be_nil
40
- # should ==
41
- # should_not ==
39
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
40
  end
43
41
  end
44
42
 
45
43
  describe 'test attribute "parent"' do
46
44
  it 'should work' do
47
- # assertion here
48
- # should be_a()
49
- # should be_nil
50
- # should ==
51
- # should_not ==
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
52
46
  end
53
47
  end
54
48