Sha256: d688cab3cc73c618809275c2e888986e1cc34b5bab52d5269b7c8797cfed6a4e

Contents?: true

Size: 812 Bytes

Versions: 4

Compression:

Stored size: 812 Bytes

Contents

# frozen_string_literal: true
require_relative 'spec_helper.rb'

describe 'comment specifications' do
  VCR.configure do |c|
    c.cassette_library_dir = CASSETTES_FOLDER
    c.hook_into :webmock

    c.filter_sensitive_data('<API_KEY>') { ENV['YOUTUBE_API_KEY'] }
    c.filter_sensitive_data('<API_KEY_ESCAPED>') do
      URI.escape(ENV['YOUTUBE_API_KEY'])
    end
  end

  before do
    VCR.insert_cassette CASSETTE_FILE, record: :new_episodes
  end

  after do
    VCR.eject_cassette
  end

  describe 'comment functions' do
    it 'should has the abilit to find by comment id' do
      comment = YoutubeVideo::Comment.find(comment_id: TEST_COMMENT_ID)
      comment.must_be_instance_of YoutubeVideo::Comment
      comment.comment_id.must_equal TEST_COMMENT_ID
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
YPBT-0.2.9 spec/comment_spec.rb
YPBT-0.2.8 spec/comment_spec.rb
YPBT-0.2.6 spec/comment_spec.rb
YPBT-0.2.5 spec/comment_spec.rb