<commit_before>require "spec_helper"

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

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

  it "returns URL" do
    expect(html).to include(link)
  end
end<commit_msg>edit imgur spec to conform to html engine spec format #71<commit_after>require "spec_helper"

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

  it_behaves_like "engines"

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

    it "returns URL" do
      expect(html).to include(link)
    end
  end
end
{'fraction_non_alphanumeric': 0.13043478260869565, 'fraction_numerical': 0.002805049088359046, 'mean_word_length': 4.0638297872340425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '6709390', 'n_tokens_mistral': 252, 'n_tokens_neox': 242, 'n_words': 59}