Sha256: d70d6c9568d86f8f42bfb187074fc72c60b093222b85f4fd688ed789af8decb5

Contents?: true

Size: 562 Bytes

Versions: 142

Compression:

Stored size: 562 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::HTML do
  before(:all) do
    @link = "http://amazon.com"
    fake(@link, response("amazon"))
  end
  before(:each) { Onebox.options.cache.clear }

  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://amazon.com").send(:raw)
      expect(object).to respond_to(:css)
    end
  end
end

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
onebox-1.8.39 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.38 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.36 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.35 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.34 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.33 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.32 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.31 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.30 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.29 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.28 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.27 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.26 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.25 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.24 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.23 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.22 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.21 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.20 spec/lib/onebox/engine/html_spec.rb
onebox-1.8.19 spec/lib/onebox/engine/html_spec.rb