<commit_before>require_relative "spec_helper"

describe Object, ".attr_implement" do
  it "creates methods that raise" do
    klass = Class.new do
      attr_implement :foo, :bar
    end

    example = klass.new
    exception = lambda { example.foo }.must_raise RuntimeError
    exception.message.must_equal "Implement a 'foo' method"
  end

  it "accepts any number of arguments" do
    klass = Class.new do
      attr_implement :foo<commit_msg>Clarify spec<commit_after>require_relative "spec_helper"

describe Object, ".attr_implement" do
  it "creates methods that raise" do
    klass = Class.new do
      attr_implement :foo, :bar
    end

    example = klass.new
    exception = lambda { example.foo }.must_raise RuntimeError
    exception.message.must_equal "Implement a 'foo' method"
  end

  it "creates methods that accept any number of arguments" do
    klass = Class.new do
      attr_implement :foo
{'fraction_non_alphanumeric': 0.07464324917672886, 'fraction_numerical': 0.0, 'mean_word_length': 3.4057971014492754, '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': '6858641', 'n_tokens_mistral': 271, 'n_tokens_neox': 278, 'n_words': 91}