Sha256: fa403e25ba7122e5a35d6fb254bf9765d8641fb69b31a2ffe773a085a4f7fa82

Contents?: true

Size: 838 Bytes

Versions: 2

Compression:

Stored size: 838 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::SoundCloudOnebox do
  let(:link) { "http://soundcloud.com" }
  before do
    fake(link, response("soundcloud.response"))
  end

  it_behaves_like "engines"

  describe "#to_html" do
    let(:html) { described_class.new(link).to_html }

    it "returns video title" do
      expect(html).to include("Penguin Prison - Worse It Gets (RAC Mix)")
    end

    it "returns video image" do
      expect(html).to include("artworks-000033643332-vpuznu-t500x500.jpg")
    end

    it "returns video description" do
      expect(html).to include("Remix by André Allen Anjos.")
    end

    it "returns video URL" do
      expect(html).to include("Remix by André Allen Anjos.")
    end

    it "returns video embed code"

    it "returns URL" do
      expect(html).to include(link)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onebox-1.0.1 spec/lib/onebox/engine/sound_cloud_spec.rb
onebox-1.0.0 spec/lib/onebox/engine/sound_cloud_spec.rb