Sha256: 8b61db8adb4309e149c34e16059c2c2bc10c42b29a945eaee66b0f3877ef516d

Contents?: true

Size: 536 Bytes

Versions: 13

Compression:

Stored size: 536 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::AmazonOnebox do
  before(:all) do
    @link = "http://www.amazon.com/Knit-Noro-Accessories-Colorful-Little/dp/193609620X"
    @uri = "http://www.amazon.com/gp/aw/d/193609620X"
  end

  include_context "engines"
  it_behaves_like "an engine"

  describe "#to_html" do
    it "includes image" do
      expect(html).to include("img")
    end

    it "includes description" do
      expect(html).to include("Using only the finest natural materials and ecologically sound")
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
onebox-1.3.2 spec/lib/onebox/engine/amazon_onebox_spec.rb
onebox-1.3.1 spec/lib/onebox/engine/amazon_onebox_spec.rb
onebox-1.3.0 spec/lib/onebox/engine/amazon_onebox_spec.rb
onebox-1.2.9 spec/lib/onebox/engine/amazon_onebox_spec.rb
onebox-1.2.8 spec/lib/onebox/engine/amazon_onebox_spec.rb
onebox-1.2.7 spec/lib/onebox/engine/amazon_onebox_spec.rb
onebox-1.2.6 spec/lib/onebox/engine/amazon_onebox_spec.rb
onebox-1.2.5 spec/lib/onebox/engine/amazon_onebox_spec.rb
onebox-1.2.4 spec/lib/onebox/engine/amazon_onebox_spec.rb
onebox-1.2.3 spec/lib/onebox/engine/amazon_onebox_spec.rb
onebox-1.2.2 spec/lib/onebox/engine/amazon_onebox_spec.rb
onebox-1.2.1 spec/lib/onebox/engine/amazon_onebox_spec.rb
onebox-1.2.0 spec/lib/onebox/engine/amazon_onebox_spec.rb