Skip to content

Instantly share code, notes, and snippets.

@joetastic
Created November 25, 2014 23:03
Show Gist options
  • Save joetastic/f472c2918a3d7e5316c2 to your computer and use it in GitHub Desktop.
Save joetastic/f472c2918a3d7e5316c2 to your computer and use it in GitHub Desktop.
RSpec.configure do |config|
config.before :each do
embedly_api_response = [double('embedly', original_url: 'http://quirky.com',
images: [], media: double('media', html: nil),
description: nil, app_links: [], title: nil,
provider_name: nil)]
allow_any_instance_of(Embedly::API).to receive(:extract)
.and_return(embedly_api_response)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment