Sha256: 3680b5171daf810ba489286e6b2fc434e448586c2a91da5718f7f6bd3b8a4553
Contents?: true
Size: 907 Bytes
Versions: 4
Compression:
Stored size: 907 Bytes
Contents
# frozen_string_literal: true require 'simplecov' SimpleCov.start require 'yaml' require 'minitest/autorun' require 'minitest/rg' require 'vcr' require 'webmock' require './lib/YPBT/comment.rb' require './lib/YPBT/video.rb' require './lib/YPBT/author.rb' require './lib/YPBT/youtube_api.rb' require_relative '../lib/YPBT' FIXTURES_FOLDER = 'spec/fixtures' CASSETTES_FOLDER = "#{FIXTURES_FOLDER}/cassettes" CASSETTE_FILE = 'youtube_api' TEST_VIDEO_ID = 'vJOkR0Xz958' TEST_COMMENT_ID = 'z13dwdepqxvdvvmbj04chpaxmuvbwjxhsr40k' TEST_CHANEL_ID = 'UCQU5uVTG8h9LToACKrm1LMA' RESULT_FILE = "#{FIXTURES_FOLDER}/yt_api_results.yml" YT_RESULT = YAML.load(File.read(RESULT_FILE)) unless ENV.key? 'YOUTUBE_API_KEY' CREDENTIALS = YAML.load(File.read('config/credentials.yml')) ENV['YOUTUBE_API_KEY'] = CREDENTIALS[:YOUTUBE_API_KEY] ENV['YT_VIDEO_ID'] = CREDENTIALS[:YT_VIDEO_ID] end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
YPBT-0.2.9 | spec/spec_helper.rb |
YPBT-0.2.8 | spec/spec_helper.rb |
YPBT-0.2.6 | spec/spec_helper.rb |
YPBT-0.2.5 | spec/spec_helper.rb |