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/rank_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'
|
@@ -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'
|
@@ -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,46 +31,36 @@ describe 'RelatedStories' do
|
|
29
31
|
|
30
32
|
describe 'test an instance of RelatedStories' do
|
31
33
|
it 'should create an instact of RelatedStories' do
|
32
|
-
@instance.
|
34
|
+
expect(@instance).to be_instance_of(AylienNewsApi::RelatedStories)
|
33
35
|
end
|
34
36
|
end
|
35
37
|
describe 'test attribute "story_title"' 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 "story_body"' 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 "story_language"' 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 "related_stories"' do
|
66
56
|
it 'should work' do
|
67
|
-
# assertion here
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
describe 'test attribute "clusters"' do
|
62
|
+
it 'should work' do
|
63
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
64
|
end
|
73
65
|
end
|
74
66
|
|
data/spec/models/scope_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,46 +31,34 @@ describe 'Scope' do
|
|
29
31
|
|
30
32
|
describe 'test an instance of Scope' do
|
31
33
|
it 'should create an instact of Scope' do
|
32
|
-
@instance.
|
34
|
+
expect(@instance).to be_instance_of(AylienNewsApi::Scope)
|
33
35
|
end
|
34
36
|
end
|
35
37
|
describe 'test attribute "country"' 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 "state"' 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 "city"' 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 "level"' do
|
66
56
|
it 'should work' do
|
67
|
-
# assertion here
|
68
|
-
#
|
69
|
-
#
|
70
|
-
#
|
71
|
-
#
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["international", "national", "local"])
|
59
|
+
#validator.allowable_values.each do |value|
|
60
|
+
# expect { @instance.level = value }.not_to raise_error
|
61
|
+
#end
|
72
62
|
end
|
73
63
|
end
|
74
64
|
|
@@ -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,26 +31,22 @@ describe 'Sentiment' do
|
|
29
31
|
|
30
32
|
describe 'test an instance of Sentiment' do
|
31
33
|
it 'should create an instact of Sentiment' do
|
32
|
-
@instance.
|
34
|
+
expect(@instance).to be_instance_of(AylienNewsApi::Sentiment)
|
33
35
|
end
|
34
36
|
end
|
35
37
|
describe 'test attribute "polarity"' do
|
36
38
|
it 'should work' do
|
37
|
-
# assertion here
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
41
|
-
#
|
39
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["positive", "neutral", "negative"])
|
41
|
+
#validator.allowable_values.each do |value|
|
42
|
+
# expect { @instance.polarity = value }.not_to raise_error
|
43
|
+
#end
|
42
44
|
end
|
43
45
|
end
|
44
46
|
|
45
47
|
describe 'test attribute "score"' do
|
46
48
|
it 'should work' do
|
47
|
-
# assertion here
|
48
|
-
# should be_a()
|
49
|
-
# should be_nil
|
50
|
-
# should ==
|
51
|
-
# should_not ==
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
50
|
end
|
53
51
|
end
|
54
52
|
|
@@ -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,26 +31,18 @@ describe 'Sentiments' do
|
|
29
31
|
|
30
32
|
describe 'test an instance of Sentiments' do
|
31
33
|
it 'should create an instact of Sentiments' do
|
32
|
-
@instance.
|
34
|
+
expect(@instance).to be_instance_of(AylienNewsApi::Sentiments)
|
33
35
|
end
|
34
36
|
end
|
35
37
|
describe 'test attribute "title"' 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 "body"' 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
|
-
|
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,26 +31,18 @@ describe 'ShareCount' do
|
|
29
31
|
|
30
32
|
describe 'test an instance of ShareCount' do
|
31
33
|
it 'should create an instact of ShareCount' do
|
32
|
-
@instance.
|
34
|
+
expect(@instance).to be_instance_of(AylienNewsApi::ShareCount)
|
33
35
|
end
|
34
36
|
end
|
35
37
|
describe 'test attribute "count"' 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 "fetched_at"' 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
|
-
|
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,46 +31,30 @@ describe 'ShareCounts' do
|
|
29
31
|
|
30
32
|
describe 'test an instance of ShareCounts' do
|
31
33
|
it 'should create an instact of ShareCounts' do
|
32
|
-
@instance.
|
34
|
+
expect(@instance).to be_instance_of(AylienNewsApi::ShareCounts)
|
33
35
|
end
|
34
36
|
end
|
35
37
|
describe 'test attribute "facebook"' 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 "google_plus"' 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 "linkedin"' 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 "reddit"' 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
|
|