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.65 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.64 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.63 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.62 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.61 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.60 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.50 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.49 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.48 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.47 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.45 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.44 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.43 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.42 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.41 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.40 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.39 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.38 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.37 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
onebox-1.5.36 spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb