spec/embedly/api_spec.rb in embedly-1.5.0 vs spec/embedly/api_spec.rb in embedly-1.5.1

- old
+ new

@@ -1,10 +1,10 @@ require "spec_helper" module Embedly describe API do - let(:api) { API.new :key => ENV['EMBEDLY_KEY'] } + let(:api) { API.new :key => ENV['EMBEDLY_KEY'], :secret => ENV['EMBEDLY_SECRET'] } describe "logger" do let(:io) { StringIO.new } before do @@ -14,10 +14,10 @@ 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?} + io.string.should =~ %r{.*DEBUG -- : .*} end end end end