Sha256: 5e2ee5fe74a463eeb3d943f27d5c6e46fb95f68405dee4436b4a96b8b0ce356c
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
require "spec_helper" describe Onebox::Engine::HTML do before(:all) do @link = "http://example.com" fake(@link, response("example")) end before(:each) { Onebox.defaults.cache.clear } let(:link) { @link } describe "#raw" do class OneboxEngineHTML include Onebox::Engine include Onebox::Engine::HTML def initialize(link) @url = link end end it "returns a Nokogiri object that has a css method" do object = OneboxEngineHTML.new("http://example.com").send(:raw) expect(object).to respond_to(:css) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.1.0 | spec/lib/onebox/engine/html_spec.rb |