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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/Rakefile +8 -0
- data/aylien_news_api.gemspec +17 -13
- data/docs/DefaultApi.md +897 -611
- data/docs/StoryLinks.md +1 -0
- data/lib/aylien_news_api.rb +15 -13
- data/lib/aylien_news_api/api/default_api.rb +861 -344
- data/lib/aylien_news_api/api_client.rb +18 -15
- data/lib/aylien_news_api/api_error.rb +22 -18
- data/lib/aylien_news_api/configuration.rb +15 -13
- data/lib/aylien_news_api/models/author.rb +15 -13
- data/lib/aylien_news_api/models/autocomplete.rb +15 -13
- data/lib/aylien_news_api/models/autocompletes.rb +15 -13
- data/lib/aylien_news_api/models/category.rb +15 -13
- data/lib/aylien_news_api/models/category_links.rb +15 -13
- data/lib/aylien_news_api/models/coverages.rb +15 -13
- data/lib/aylien_news_api/models/entities.rb +15 -13
- data/lib/aylien_news_api/models/entity.rb +25 -23
- data/lib/aylien_news_api/models/entity_links.rb +15 -13
- data/lib/aylien_news_api/models/error.rb +15 -13
- data/lib/aylien_news_api/models/error_links.rb +15 -13
- data/lib/aylien_news_api/models/errors.rb +15 -13
- data/lib/aylien_news_api/models/histogram_interval.rb +15 -13
- data/lib/aylien_news_api/models/histograms.rb +15 -13
- data/lib/aylien_news_api/models/location.rb +15 -13
- data/lib/aylien_news_api/models/media.rb +15 -13
- data/lib/aylien_news_api/models/rank.rb +15 -13
- data/lib/aylien_news_api/models/rankings.rb +15 -13
- data/lib/aylien_news_api/models/related_stories.rb +15 -13
- data/lib/aylien_news_api/models/scope.rb +15 -13
- data/lib/aylien_news_api/models/sentiment.rb +25 -23
- data/lib/aylien_news_api/models/sentiments.rb +15 -13
- data/lib/aylien_news_api/models/share_count.rb +15 -13
- data/lib/aylien_news_api/models/share_counts.rb +15 -13
- data/lib/aylien_news_api/models/source.rb +15 -13
- data/lib/aylien_news_api/models/stories.rb +15 -13
- data/lib/aylien_news_api/models/story.rb +15 -13
- data/lib/aylien_news_api/models/story_cluster.rb +15 -13
- data/lib/aylien_news_api/models/story_links.rb +29 -17
- data/lib/aylien_news_api/models/summary.rb +15 -13
- data/lib/aylien_news_api/models/time_series.rb +15 -13
- data/lib/aylien_news_api/models/time_series_list.rb +15 -13
- data/lib/aylien_news_api/models/trend.rb +15 -13
- data/lib/aylien_news_api/models/trends.rb +15 -13
- data/lib/aylien_news_api/version.rb +16 -14
- data/spec/api/default_api_spec.rb +463 -189
- data/spec/api_client_spec.rb +25 -101
- data/spec/configuration_spec.rb +26 -19
- data/spec/models/author_spec.rb +19 -29
- data/spec/models/autocomplete_spec.rb +18 -24
- data/spec/models/autocompletes_spec.rb +17 -19
- data/spec/models/category_links_spec.rb +18 -24
- data/spec/models/category_spec.rb +26 -44
- data/spec/models/coverages_spec.rb +27 -39
- data/spec/models/entities_spec.rb +18 -24
- data/spec/models/entity_links_spec.rb +17 -19
- data/spec/models/entity_spec.rb +21 -39
- data/spec/models/error_links_spec.rb +17 -19
- data/spec/models/error_spec.rb +22 -44
- data/spec/models/errors_spec.rb +17 -19
- data/spec/models/histogram_interval_spec.rb +18 -24
- data/spec/models/histograms_spec.rb +21 -39
- data/spec/models/location_spec.rb +19 -29
- data/spec/models/media_spec.rb +50 -24
- data/spec/models/rank_spec.rb +15 -13
- data/spec/models/rankings_spec.rb +15 -13
- data/spec/models/related_stories_spec.rb +26 -34
- data/spec/models/scope_spec.rb +24 -34
- data/spec/models/sentiment_spec.rb +22 -24
- data/spec/models/sentiments_spec.rb +18 -24
- data/spec/models/share_count_spec.rb +18 -24
- data/spec/models/share_counts_spec.rb +20 -34
- data/spec/models/source_spec.rb +52 -44
- data/spec/models/stories_spec.rb +19 -29
- data/spec/models/story_cluster_spec.rb +21 -39
- data/spec/models/story_links_spec.rb +25 -29
- data/spec/models/story_spec.rb +36 -114
- data/spec/models/summary_spec.rb +17 -19
- data/spec/models/time_series_list_spec.rb +20 -34
- data/spec/models/time_series_spec.rb +18 -24
- data/spec/models/trend_spec.rb +18 -24
- data/spec/models/trends_spec.rb +18 -24
- data/spec/spec_helper.rb +15 -13
- metadata +25 -8
- data/Gemfile.lock +0 -65
- data/LICENSE +0 -13
- data/aylien_news_api-0.2.0.gem +0 -0
- data/aylien_news_api-0.3.0.gem +0 -0
data/spec/models/source_spec.rb
CHANGED
@@ -1,16 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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,66 +31,72 @@ describe 'Source' do
|
|
29
31
|
|
30
32
|
describe 'test an instance of Source' do
|
31
33
|
it 'should create an instact of Source' do
|
32
|
-
@instance.
|
34
|
+
expect(@instance).to be_instance_of(AylienNewsApi::Source)
|
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
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
describe 'test attribute "title"' do
|
50
|
+
it 'should work' do
|
51
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
describe 'test attribute "description"' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
describe 'test attribute "links_in_count"' do
|
62
|
+
it 'should work' do
|
63
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
describe 'test attribute "home_page_url"' do
|
68
|
+
it 'should work' do
|
69
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
70
|
end
|
53
71
|
end
|
54
72
|
|
55
73
|
describe 'test attribute "domain"' do
|
56
74
|
it 'should work' do
|
57
|
-
# assertion here
|
58
|
-
# should be_a()
|
59
|
-
# should be_nil
|
60
|
-
# should ==
|
61
|
-
# should_not ==
|
75
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
76
|
end
|
63
77
|
end
|
64
78
|
|
65
79
|
describe 'test attribute "logo_url"' do
|
66
80
|
it 'should work' do
|
67
|
-
# assertion here
|
68
|
-
# should be_a()
|
69
|
-
# should be_nil
|
70
|
-
# should ==
|
71
|
-
# should_not ==
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
82
|
end
|
73
83
|
end
|
74
84
|
|
75
85
|
describe 'test attribute "locations"' do
|
76
86
|
it 'should work' do
|
77
|
-
# assertion here
|
78
|
-
# should be_a()
|
79
|
-
# should be_nil
|
80
|
-
# should ==
|
81
|
-
# should_not ==
|
87
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
88
|
end
|
83
89
|
end
|
84
90
|
|
85
91
|
describe 'test attribute "scopes"' do
|
86
92
|
it 'should work' do
|
87
|
-
# assertion here
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
93
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
describe 'test attribute "rankings"' do
|
98
|
+
it 'should work' do
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
100
|
end
|
93
101
|
end
|
94
102
|
|
data/spec/models/stories_spec.rb
CHANGED
@@ -1,16 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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 'Stories' do
|
|
29
31
|
|
30
32
|
describe 'test an instance of Stories' do
|
31
33
|
it 'should create an instact of Stories' do
|
32
|
-
@instance.
|
34
|
+
expect(@instance).to be_instance_of(AylienNewsApi::Stories)
|
33
35
|
end
|
34
36
|
end
|
35
37
|
describe 'test attribute "stories"' 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 "clusters"' 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 "next_page_cursor"' 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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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,56 +31,36 @@ describe 'StoryCluster' do
|
|
29
31
|
|
30
32
|
describe 'test an instance of StoryCluster' do
|
31
33
|
it 'should create an instact of StoryCluster' do
|
32
|
-
@instance.
|
34
|
+
expect(@instance).to be_instance_of(AylienNewsApi::StoryCluster)
|
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 "phrases"' 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 "size"' 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
|
|
65
55
|
describe 'test attribute "stories"' do
|
66
56
|
it 'should work' do
|
67
|
-
# assertion here
|
68
|
-
# should be_a()
|
69
|
-
# should be_nil
|
70
|
-
# should ==
|
71
|
-
# should_not ==
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
58
|
end
|
73
59
|
end
|
74
60
|
|
75
61
|
describe 'test attribute "score"' do
|
76
62
|
it 'should work' do
|
77
|
-
# assertion here
|
78
|
-
# should be_a()
|
79
|
-
# should be_nil
|
80
|
-
# should ==
|
81
|
-
# should_not ==
|
63
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
64
|
end
|
83
65
|
end
|
84
66
|
|
@@ -1,16 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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,30 @@ describe 'StoryLinks' do
|
|
29
31
|
|
30
32
|
describe 'test an instance of StoryLinks' do
|
31
33
|
it 'should create an instact of StoryLinks' do
|
32
|
-
@instance.
|
34
|
+
expect(@instance).to be_instance_of(AylienNewsApi::StoryLinks)
|
33
35
|
end
|
34
36
|
end
|
35
37
|
describe 'test attribute "permalink"' 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 "related_stories"' 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 "coverages"' do
|
56
50
|
it 'should work' do
|
57
|
-
# assertion here
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
51
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
describe 'test attribute "canonical"' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
58
|
end
|
63
59
|
end
|
64
60
|
|
data/spec/models/story_spec.rb
CHANGED
@@ -1,16 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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,206 +31,126 @@ describe 'Story' do
|
|
29
31
|
|
30
32
|
describe 'test an instance of Story' do
|
31
33
|
it 'should create an instact of Story' do
|
32
|
-
@instance.
|
34
|
+
expect(@instance).to be_instance_of(AylienNewsApi::Story)
|
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 "title"' 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 "body"' 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
|
|
65
55
|
describe 'test attribute "summary"' do
|
66
56
|
it 'should work' do
|
67
|
-
# assertion here
|
68
|
-
# should be_a()
|
69
|
-
# should be_nil
|
70
|
-
# should ==
|
71
|
-
# should_not ==
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
58
|
end
|
73
59
|
end
|
74
60
|
|
75
61
|
describe 'test attribute "source"' do
|
76
62
|
it 'should work' do
|
77
|
-
# assertion here
|
78
|
-
# should be_a()
|
79
|
-
# should be_nil
|
80
|
-
# should ==
|
81
|
-
# should_not ==
|
63
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
64
|
end
|
83
65
|
end
|
84
66
|
|
85
67
|
describe 'test attribute "author"' do
|
86
68
|
it 'should work' do
|
87
|
-
# assertion here
|
88
|
-
# should be_a()
|
89
|
-
# should be_nil
|
90
|
-
# should ==
|
91
|
-
# should_not ==
|
69
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
70
|
end
|
93
71
|
end
|
94
72
|
|
95
73
|
describe 'test attribute "entities"' do
|
96
74
|
it 'should work' do
|
97
|
-
# assertion here
|
98
|
-
# should be_a()
|
99
|
-
# should be_nil
|
100
|
-
# should ==
|
101
|
-
# should_not ==
|
75
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
102
76
|
end
|
103
77
|
end
|
104
78
|
|
105
79
|
describe 'test attribute "keywords"' do
|
106
80
|
it 'should work' do
|
107
|
-
# assertion here
|
108
|
-
# should be_a()
|
109
|
-
# should be_nil
|
110
|
-
# should ==
|
111
|
-
# should_not ==
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
112
82
|
end
|
113
83
|
end
|
114
84
|
|
115
85
|
describe 'test attribute "hashtags"' do
|
116
86
|
it 'should work' do
|
117
|
-
# assertion here
|
118
|
-
# should be_a()
|
119
|
-
# should be_nil
|
120
|
-
# should ==
|
121
|
-
# should_not ==
|
87
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
88
|
end
|
123
89
|
end
|
124
90
|
|
125
91
|
describe 'test attribute "characters_count"' do
|
126
92
|
it 'should work' do
|
127
|
-
# assertion here
|
128
|
-
# should be_a()
|
129
|
-
# should be_nil
|
130
|
-
# should ==
|
131
|
-
# should_not ==
|
93
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
132
94
|
end
|
133
95
|
end
|
134
96
|
|
135
97
|
describe 'test attribute "words_count"' do
|
136
98
|
it 'should work' do
|
137
|
-
# assertion here
|
138
|
-
# should be_a()
|
139
|
-
# should be_nil
|
140
|
-
# should ==
|
141
|
-
# should_not ==
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
142
100
|
end
|
143
101
|
end
|
144
102
|
|
145
103
|
describe 'test attribute "sentences_count"' do
|
146
104
|
it 'should work' do
|
147
|
-
# assertion here
|
148
|
-
# should be_a()
|
149
|
-
# should be_nil
|
150
|
-
# should ==
|
151
|
-
# should_not ==
|
105
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
152
106
|
end
|
153
107
|
end
|
154
108
|
|
155
109
|
describe 'test attribute "paragraphs_count"' do
|
156
110
|
it 'should work' do
|
157
|
-
# assertion here
|
158
|
-
# should be_a()
|
159
|
-
# should be_nil
|
160
|
-
# should ==
|
161
|
-
# should_not ==
|
111
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
162
112
|
end
|
163
113
|
end
|
164
114
|
|
165
115
|
describe 'test attribute "categories"' do
|
166
116
|
it 'should work' do
|
167
|
-
# assertion here
|
168
|
-
# should be_a()
|
169
|
-
# should be_nil
|
170
|
-
# should ==
|
171
|
-
# should_not ==
|
117
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
172
118
|
end
|
173
119
|
end
|
174
120
|
|
175
121
|
describe 'test attribute "social_shares_count"' do
|
176
122
|
it 'should work' do
|
177
|
-
# assertion here
|
178
|
-
# should be_a()
|
179
|
-
# should be_nil
|
180
|
-
# should ==
|
181
|
-
# should_not ==
|
123
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
182
124
|
end
|
183
125
|
end
|
184
126
|
|
185
127
|
describe 'test attribute "media"' do
|
186
128
|
it 'should work' do
|
187
|
-
# assertion here
|
188
|
-
# should be_a()
|
189
|
-
# should be_nil
|
190
|
-
# should ==
|
191
|
-
# should_not ==
|
129
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
192
130
|
end
|
193
131
|
end
|
194
132
|
|
195
133
|
describe 'test attribute "sentiment"' do
|
196
134
|
it 'should work' do
|
197
|
-
# assertion here
|
198
|
-
# should be_a()
|
199
|
-
# should be_nil
|
200
|
-
# should ==
|
201
|
-
# should_not ==
|
135
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
202
136
|
end
|
203
137
|
end
|
204
138
|
|
205
139
|
describe 'test attribute "language"' do
|
206
140
|
it 'should work' do
|
207
|
-
# assertion here
|
208
|
-
# should be_a()
|
209
|
-
# should be_nil
|
210
|
-
# should ==
|
211
|
-
# should_not ==
|
141
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
212
142
|
end
|
213
143
|
end
|
214
144
|
|
215
145
|
describe 'test attribute "published_at"' do
|
216
146
|
it 'should work' do
|
217
|
-
# assertion here
|
218
|
-
# should be_a()
|
219
|
-
# should be_nil
|
220
|
-
# should ==
|
221
|
-
# should_not ==
|
147
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
222
148
|
end
|
223
149
|
end
|
224
150
|
|
225
151
|
describe 'test attribute "links"' do
|
226
152
|
it 'should work' do
|
227
|
-
# assertion here
|
228
|
-
# should be_a()
|
229
|
-
# should be_nil
|
230
|
-
# should ==
|
231
|
-
# should_not ==
|
153
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
232
154
|
end
|
233
155
|
end
|
234
156
|
|