<commit_before>require "spec_helper"

describe Onebox::Engine::GithubGistOnebox do
  let(:link) { "http://gist.github.com" }
  before do
    fake(link, response("github_gist"))
  end

  it_behaves_like "an engine"

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

    it "has raw file contents" do
      expect(html).to include("# Create a new blog post on GitHub")
    end

    it "has author" do
      expect(html).to include("anikalindtner")
    end

    it "has URL" do
      expect(html).to include(link)
    end
  end
end<commit_msg>change link in github gist spec to actual link to test matcher #76<commit_after>require "spec_helper"

describe Onebox::Engine::GithubGistOnebox do
  let(:link) { "https://gist.github.com/anikalindtner/153044e9bea3331cc103" }
  before do
    fake(link, response("github_gist"))
  end

  it_behaves_like "an engine"

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

    it "has raw file contents" do
      expect(html).to include("# Create a new blog post on GitHub")
    end

    it "has author" do
      expect(html).to include("anikalindtner")
    end

    it "has URL" do
      expect(html).to include(link)
    end
  end
end
{'fraction_non_alphanumeric': 0.1132844335778321, 'fraction_numerical': 0.013039934800325998, 'mean_word_length': 3.401433691756272, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '5824690', 'n_tokens_mistral': 442, 'n_tokens_neox': 416, 'n_words': 115}