Sha256: e6f904c198b5bd89dba4c1260958e7596c00a209a7fba56366ff009b3840666a
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
# frozen_string_literal: true require 'simplecov' SimpleCov.start require 'yaml' require 'minitest/autorun' require 'minitest/rg' require 'vcr' require 'webmock' require_relative '../lib/facegroup' FIXTURES_FOLDER = 'spec/fixtures' CASSETTES_FOLDER = "#{FIXTURES_FOLDER}/cassettes" CASSETTE_FILE = 'facebook_api' if File.file?('config/credentials.yml') credentials = YAML.load(File.read('config/credentials.yml')) ENV['FB_CLIENT_ID'] = credentials[:client_id] ENV['FB_CLIENT_SECRET'] = credentials[:client_secret] ENV['FB_ACCESS_TOKEN'] = credentials[:access_token] ENV['FB_GROUP_ID'] = credentials[:group_id] end RESULT_FILE = "#{FIXTURES_FOLDER}/fb_api_results.yml" FB_RESULT = YAML.load(File.read(RESULT_FILE))
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facegroup-0.1.0 | spec/spec_helper.rb |