onebox 1.5.33 → 1.5.34

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,25 @@
1
+ require "spec_helper"
2
+
3
+ describe Onebox::Engine::SlidesOnebox do
4
+
5
+ let(:link) { "http://slides.com/drksephy/ecmascript-2015" }
6
+ let(:html) { described_class.new(link).to_html }
7
+
8
+ before do
9
+ fake(link, response("slides"))
10
+ end
11
+
12
+ describe "#placeholder_html" do
13
+ it "returns an image as the placeholder" do
14
+ expect(Onebox.preview(link)
15
+ .placeholder_html).to include("//s3.amazonaws.com/media-p.slid.es/thumbnails/secure/cff7c3/decks.jpg")
16
+ end
17
+ end
18
+
19
+ describe "#to_html" do
20
+ it "returns iframe embed" do
21
+ expect(html).to include(URI(link).path)
22
+ expect(html).to include("iframe")
23
+ end
24
+ end
25
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.33
4
+ version: 1.5.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joanna Zeta
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-01-18 00:00:00.000000000 Z
13
+ date: 2016-01-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json
@@ -317,6 +317,7 @@ files:
317
317
  - lib/onebox/engine/json.rb
318
318
  - lib/onebox/engine/pastebin_onebox.rb
319
319
  - lib/onebox/engine/pubmed_onebox.rb
320
+ - lib/onebox/engine/slides_onebox.rb
320
321
  - lib/onebox/engine/soundcloud_onebox.rb
321
322
  - lib/onebox/engine/stack_exchange_onebox.rb
322
323
  - lib/onebox/engine/standard_embed.rb
@@ -353,6 +354,7 @@ files:
353
354
  - spec/fixtures/pastebin.response
354
355
  - spec/fixtures/pubmed-xml.response
355
356
  - spec/fixtures/pubmed.response
357
+ - spec/fixtures/slides.response
356
358
  - spec/fixtures/stackexchange.response
357
359
  - spec/fixtures/steamstorewidget.response
358
360
  - spec/fixtures/twitterstatus.response
@@ -378,6 +380,7 @@ files:
378
380
  - spec/lib/onebox/engine/json_spec.rb
379
381
  - spec/lib/onebox/engine/pastebin_onebox.spec.rb
380
382
  - spec/lib/onebox/engine/pubmed_onebox_spec.rb
383
+ - spec/lib/onebox/engine/slides_onebox_spec.rb
381
384
  - spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
382
385
  - spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
383
386
  - spec/lib/onebox/engine/twitter_status_onebox_spec.rb
@@ -452,6 +455,7 @@ test_files:
452
455
  - spec/fixtures/pastebin.response
453
456
  - spec/fixtures/pubmed-xml.response
454
457
  - spec/fixtures/pubmed.response
458
+ - spec/fixtures/slides.response
455
459
  - spec/fixtures/stackexchange.response
456
460
  - spec/fixtures/steamstorewidget.response
457
461
  - spec/fixtures/twitterstatus.response
@@ -477,6 +481,7 @@ test_files:
477
481
  - spec/lib/onebox/engine/json_spec.rb
478
482
  - spec/lib/onebox/engine/pastebin_onebox.spec.rb
479
483
  - spec/lib/onebox/engine/pubmed_onebox_spec.rb
484
+ - spec/lib/onebox/engine/slides_onebox_spec.rb
480
485
  - spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
481
486
  - spec/lib/onebox/engine/steam_store_widget_onebox_spec.rb
482
487
  - spec/lib/onebox/engine/twitter_status_onebox_spec.rb