Sha256: a30e694793b0016b736930c2d380e2c996aab63c9d5700b364da68458a79d967
Contents?: true
Size: 505 Bytes
Versions: 6
Compression:
Stored size: 505 Bytes
Contents
require "spec_helper" module Embedly describe API do let(:api) { API.new :key => ENV['EMBEDLY_KEY'] } describe "logger" do let(:io) { StringIO.new } before do Embedly.configure do |c| c.debug = true c.logger = Logger.new(io) end end it "logs if debug is enabled" do api.oembed :url => 'http://blog.doki-pen.org/' io.string.should =~ %r{DEBUG -- : calling http://api.embed.ly/1/oembed?} end end end end
Version data entries
6 entries across 6 versions & 2 rubygems