Sha256: 00168a19a204d902a63082271fd82730c8b9e3420a77b312942f42bd2927e552
Contents?: true
Size: 761 Bytes
Versions: 1
Compression:
Stored size: 761 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/facegroups' 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)) INVALID_RESOURCE_ID = '_12345'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facegroups-0.2.2 | spec/spec_helper.rb |