spec/lib/onebox/engine/html_spec.rb in onebox-1.1.0 vs spec/lib/onebox/engine/html_spec.rb in onebox-1.2.0
- old
+ new
@@ -1,16 +1,14 @@
require "spec_helper"
describe Onebox::Engine::HTML do
before(:all) do
- @link = "http://example.com"
- fake(@link, response("example"))
+ @link = "http://amazon.com"
+ fake(@link, response("amazon"))
end
- before(:each) { Onebox.defaults.cache.clear }
+ before(:each) { Onebox.options.cache.clear }
- let(:link) { @link }
-
describe "#raw" do
class OneboxEngineHTML
include Onebox::Engine
include Onebox::Engine::HTML
@@ -18,10 +16,10 @@
@url = link
end
end
it "returns a Nokogiri object that has a css method" do
- object = OneboxEngineHTML.new("http://example.com").send(:raw)
+ object = OneboxEngineHTML.new("http://amazon.com").send(:raw)
expect(object).to respond_to(:css)
end
end
end