onebox 1.5.65 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onebox/engine.rb +1 -1
- data/lib/onebox/engine/standard_embed.rb +6 -1
- data/lib/onebox/engine/vimeo_onebox.rb +20 -0
- data/lib/onebox/engine/xkcd_onebox.rb +11 -11
- data/lib/onebox/version.rb +1 -1
- data/templates/xkcd.mustache +5 -8
- metadata +3 -7
- data/lib/onebox/engine/steam_store_widget_onebox.rb +0 -29
- data/spec/fixtures/steamstorewidget.response +0 -1993
- data/spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb +0 -21
@@ -1,21 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
describe Onebox::Engine::SteamStoreWidgetOnebox do
|
4
|
-
|
5
|
-
before do
|
6
|
-
fake("http://store.steampowered.com/app/10/", response("steamstorewidget"))
|
7
|
-
end
|
8
|
-
|
9
|
-
it "supports iframe widget render" do
|
10
|
-
expect(Onebox.preview('http://store.steampowered.com/app/10/').to_s).to match(/<iframe/)
|
11
|
-
end
|
12
|
-
|
13
|
-
it "supports http app to https widget resource" do
|
14
|
-
expect(Onebox.preview('http://store.steampowered.com/app/10/').to_s).to match('https://store.steampowered.com/widget/10/')
|
15
|
-
end
|
16
|
-
|
17
|
-
it "supports a simple preview without an iframe" do
|
18
|
-
expect(Onebox.preview('http://store.steampowered.com/app/10/').placeholder_html.to_s).to match('Steam Store Widget onebox preview')
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|