facegroups 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/facegroups/version.rb +1 -1
- data/spec/facegroups_spec.rb +0 -16
- data/spec/spec_helper.rb +18 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a38b4a1bbadfc425d517db2431c0e73b420143bb
|
4
|
+
data.tar.gz: 18e87447ef4f72a2c47908697a6b4884097087ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7eea6952145e45fd31dea57565f5874b9d504561508918f226b0e3dc7bc3dd5022c64de9b4a7cd537b191e89db9c808bc108ca19aac51770c8c2f29d209053c
|
7
|
+
data.tar.gz: 00a60a5254b356db714848976459afe08a97129bf8d6c796a1a3748a3084171febf466b37ced2e5621d8f351fb33e2889f408ee4304a6c57abc81ddc977d8772
|
data/Gemfile.lock
CHANGED
data/lib/facegroups/version.rb
CHANGED
data/spec/facegroups_spec.rb
CHANGED
@@ -2,22 +2,6 @@
|
|
2
2
|
require_relative 'spec_helper.rb'
|
3
3
|
|
4
4
|
describe 'FaceGroups specifications' do
|
5
|
-
VCR.configure do |c|
|
6
|
-
c.cassette_library_dir = CASSETTES_FOLDER
|
7
|
-
c.hook_into :webmock
|
8
|
-
|
9
|
-
c.filter_sensitive_data('<ACCESS_TOKEN>') do
|
10
|
-
URI.unescape(ENV['FB_ACCESS_TOKEN'])
|
11
|
-
end
|
12
|
-
|
13
|
-
c.filter_sensitive_data('<ACCESS_TOKEN_ESCAPED>') do
|
14
|
-
ENV['FB_ACCESS_TOKEN']
|
15
|
-
end
|
16
|
-
|
17
|
-
c.filter_sensitive_data('<CLIENT_ID>') { ENV['FB_CLIENT_ID'] }
|
18
|
-
c.filter_sensitive_data('<CLIENT_SECRET>') { ENV['FB_CLIENT_SECRET'] }
|
19
|
-
end
|
20
|
-
|
21
5
|
before do
|
22
6
|
VCR.insert_cassette CASSETTE_FILE, record: :new_episodes
|
23
7
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -25,3 +25,21 @@ end
|
|
25
25
|
RESULT_FILE = "#{FIXTURES_FOLDER}/fb_api_results.yml"
|
26
26
|
FB_RESULT = YAML.load(File.read(RESULT_FILE))
|
27
27
|
INVALID_RESOURCE_ID = '_12345'
|
28
|
+
|
29
|
+
VCR.configure do |c|
|
30
|
+
c.cassette_library_dir = CASSETTES_FOLDER
|
31
|
+
c.hook_into :webmock
|
32
|
+
|
33
|
+
c.filter_sensitive_data('<ACCESS_TOKEN>') do
|
34
|
+
URI.unescape(ENV['FB_ACCESS_TOKEN'])
|
35
|
+
end
|
36
|
+
|
37
|
+
c.filter_sensitive_data('<ACCESS_TOKEN_ESCAPED>') do
|
38
|
+
ENV['FB_ACCESS_TOKEN']
|
39
|
+
end
|
40
|
+
|
41
|
+
c.filter_sensitive_data('<CLIENT_ID>') { ENV['FB_CLIENT_ID'] }
|
42
|
+
c.filter_sensitive_data('<CLIENT_SECRET>') { ENV['FB_CLIENT_SECRET'] }
|
43
|
+
|
44
|
+
c.ignore_hosts 'codeclimate.com'
|
45
|
+
end
|