<commit_before>require_relative '../test_helper'

describe DC::Embed do
  it "should require a resource" do
    Proc.new{ DC::Embed.new(nil, {}) }.must_raise ArgumentError
    Proc.new{ DC::Embed.new({}, {})  }.must_raise ArgumentError

    struct = Struct.new(:id).new
    DC::Embed.new(struct, {}).must_be_kind_of DC::Embed
  end
end<commit_msg>more stub tests, add fake url.<commit_after>require_relative '../test_helper'
require 'pry'

describe DC::Embed do
  
  let(:resource) { Struct.new(:id, :url).new("1235", "https://lol.wat/1235") }
  
  it "should require a resource" do
    Proc.new{ DC::Embed.new(nil, {}) }.must_raise ArgumentError
    Proc.new{ DC::Embed.new({}, {})  }.must_raise ArgumentError

    DC::Embed.new(resource, {}).must_be_kind_of DC::Embed
  end
  
  it "should output HTML markup"
  it "should output an oembed response as json"
  it "should output a JST template"
end
{'fraction_non_alphanumeric': 0.15350389321468297, 'fraction_numerical': 0.008898776418242492, 'mean_word_length': 4.113636363636363, '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': '5272255', 'n_tokens_mistral': 328, 'n_tokens_neox': 305, 'n_words': 79}