<commit_before>require "rubygems"
require "spec"
require File.dirname(__FILE__) + "/../lib/rack/test"

require File.dirname(__FILE__) + "/fake_app"

describe "any #verb methods", :shared => true do
  it "requests the URL using VERB" do
    @session.send(verb, "/")
    request.env["REQUEST_METHOD"].should == verb.upcase
    response.should be_ok
  end

  it "uses the provided params hash" do
    unless %(head put).include?(verb)
      @session.send(verb, "/", :foo => "bar")
      request.send(verb.upcase).should == { "foo" => "bar" }
    end
  end<commit_msg>Fix failing spec for delete<commit_after>require "rubygems"
require "spec"
require File.dirname(__FILE__) + "/../lib/rack/test"

require File.dirname(__FILE__) + "/fake_app"

describe "any #verb methods", :shared => true do
  it "requests the URL using VERB" do
    @session.send(verb, "/")
    request.env["REQUEST_METHOD"].should == verb.upcase
    response.should be_ok
  end

  it "uses the provided params hash" do
    unless %(head put delete).include?(verb)
      @session.send(verb, "/", :foo => "bar")
      request.send(verb.upcase).should == { "foo" => "bar" }
    end
  end
{'fraction_non_alphanumeric': 0.15839860748476936, 'fraction_numerical': 0.0, 'mean_word_length': 3.6, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2839033', 'n_tokens_mistral': 378, 'n_tokens_neox': 373, 'n_words': 100}