<commit_before>$: << File.dirname(__FILE__)+'/../lib'

require 'splat'

class VerificationMatcher
  def matches? description
    @description = description
    $stdout.print "Did it #{description}? "
    $stdin.gets =~ /^y/i
  end

  def failure_message
    "Did not #{@description}"
  end
end

describe 'splat' do
  def be_verified
    VerificationMatcher.new
  end

  it do
    "http://www.google.com".to_browser
    "launch a browser and go to google.com".should be_verified
  end
end<commit_msg>added a description method to matcher for spec documentation output<commit_after>$: << File.dirname(__FILE__)+'/../lib'

require 'splat'

class VerificationMatcher
  def matches? description
    @description = description
    $stderr.print "Did it #{description}? "
    $stdin.gets =~ /^y/i
  end

  def description
    "#{@description}"
  end

  def failure_message
    "Did not #{@description}"
  end
end

describe 'splat' do
  def be_verified
    VerificationMatcher.new
  end

  it do
    "http://www.google.com".to_browser
    "launch a browser and go to google.com".should be_verified
  end
end
{'fraction_non_alphanumeric': 0.11101000909918107, 'fraction_numerical': 0.0, 'mean_word_length': 3.3824701195219125, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5242882', 'n_tokens_mistral': 362, 'n_tokens_neox': 349, 'n_words': 102}