Sha256: 336d42458a1aabe95ba0b08dd138ee912b81c107aa14aea287212709d0ed666f
Contents?: true
Size: 743 Bytes
Versions: 1
Compression:
Stored size: 743 Bytes
Contents
require "spec_helper" describe Onebox::Engine::ItunesOnebox do before(:all) do @link = "https://itunes.apple.com/us/app/minecraft-pocket-edition/id479516143?mt=8" fake(@link, response("itunes")) end before(:each) { Onebox.defaults.cache.clear } let(:link) { @link } it_behaves_like "an engine" describe "#to_html" do let(:html) { described_class.new(link).to_html } it "returns the product title" do expect(html).to include("Minecraft – Pocket Edition") end it "returns the product image" do expect(html).to include("bxerxqln.png") end it "returns the product description" do expect(html).to include("Get Minecraft – Pocket Edition on the App Store.") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.1.0 | spec/lib/onebox/engine/itunes_onebox_spec.rb |