spec/lib/onebox_spec.rb in onebox-1.2.6 vs spec/lib/onebox_spec.rb in onebox-1.2.7
- old
+ new
@@ -1,7 +1,12 @@
require "spec_helper"
describe Onebox do
+
+ before do
+ fake("http://www.amazon.com", response("amazon"))
+ end
+
describe ".preview" do
let(:url) { "http://www.amazon.com" }
it "creates a cache that responds as expected" do
preview = Onebox.preview(url)
cache = preview.cache