Sha256: ea9f2f6ed4031de248678e15936c18173749100c0101d3f111a85341dad74123

Contents?: true

Size: 531 Bytes

Versions: 3

Compression:

Stored size: 531 Bytes

Contents

if ENV.key?('WITH_GIPHY')
  describe Giphy do
    let(:burrito_gif) { 'https://media3.giphy.com/media/xTiTndNDuNFxUW5Xoc/giphy.gif' }
    before do
      Giphy::Configuration.configure do |config|
        config.api_key = 'giphy-api-key'
      end
    end
    after do
      Giphy::Configuration.configure do |config|
        config.api_key = ENV['GIPHY_API_KEY']
      end
    end
    it 'random', vcr: { cassette_name: 'giphy_burrito' } do
      expect(Giphy.random('burrito').image_url.to_s).to eq burrito_gif
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slack-ruby-bot-0.12.0 spec/slack-ruby-bot/initializers/giphy_spec.rb
slack-ruby-bot-0.11.2 spec/slack-ruby-bot/initializers/giphy_spec.rb
slack-ruby-bot-0.11.1 spec/slack-ruby-bot/initializers/giphy_spec.rb