Sha256: 70f7c68ab53f5bc58b55cce45662cdbaf20c54709460fd64610755abc002cbd8

Contents?: true

Size: 704 Bytes

Versions: 28

Compression:

Stored size: 704 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::SteamStoreWidgetOnebox do

  before do
    fake("http://store.steampowered.com/app/10/", response("steamstorewidget"))
  end

  it "supports iframe widget render" do
    expect(Onebox.preview('http://store.steampowered.com/app/10/').to_s).to match(/<iframe/)
  end

  it "supports http app to https widget resource" do
    expect(Onebox.preview('http://store.steampowered.com/app/10/').to_s).to match('https://store.steampowered.com/widget/10/')
  end
 
  it "supports a simple preview without an iframe" do
    expect(Onebox.preview('http://store.steampowered.com/app/10/').placeholder_html.to_s).to match('Steam Store Widget onebox preview')
  end
 
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
onebox-1.5.35 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.34 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.33 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.32 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.31 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.30 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.29 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.28 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb