<commit_before>require "spec_helper"

describe Onebox::Engine::ViddlerOnebox do
  let(:link) { "http://viddler.com" }
  let(:html) { described_class.new(link).to_html }

  before do
    fake(link, response("viddler.response"))
  end

  it "returns video title" do
    expect(html).to include("Viddler Demo")
  end

  it "returns video image" do
    expect(html).to include("thumbnail_2_7164f749_v2.jpg")
  end

  it "returns video description" do
    expect(html).to include("Get familiar with your Viddler account.")
  end

  it "returns video URL" do
    expect(html).to include("http://www.viddler.com/player/7164f749")
  end

  it "returns URL" do
    expect(html).to include(link)
  end
end<commit_msg>add viddler pending test for video embed code. fixes #91<commit_after>require "spec_helper"

describe Onebox::Engine::ViddlerOnebox do
  let(:link) { "http://viddler.com" }
  let(:html) { described_class.new(link).to_html }

  before do
    fake(link, response("viddler.response"))
  end

  it "returns video title" do
    expect(html).to include("Viddler Demo")
  end

  it "returns video image" do
    expect(html).to include("thumbnail_2_7164f749_v2.jpg")
  end

  it "returns video description" do
    expect(html).to include("Get familiar with your Viddler account.")
  end

  it "returns video URL" do
    expect(html).to include("http://www.viddler.com/player/7164f749")
  end

  it "returns video embed code"

  it "returns URL" do
    expect(html).to include(link)
  end
end
{'fraction_non_alphanumeric': 0.1221476510067114, 'fraction_numerical': 0.022818791946308724, 'mean_word_length': 3.953488372093023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2477915', 'n_tokens_mistral': 536, 'n_tokens_neox': 506, 'n_words': 133}