<commit_before>require "spec_helper"

describe ItemsController do
  describe "routing" do

    it "routes to #index" do
      get("/items").should route_to("items#index")
    end

    it "routes to #new" do
      get("/items/new").should route_to("items#new")
    end

    it "routes to #show" do
      get("/items/1").should route_to("items#show", :id => "1")
    end

    it "routes to #edit" do
      get("/items/1/edit").should route_to("items#edit", :id => "1")
    end

    it "routes to #create" do
      post("/items").should route_to("items#create")
    end

    it "routes to #update" do
      put("/items/1").should route_to("items#update", :id => "1")
    end

    it "routes to #destroy" do
      delete("/items/1").should route_to("items#destroy", :id => "1")
    end

  end
end<commit_msg>Fix routing specs<commit_after>require "spec_helper"

describe ItemsController do
  describe "routing" do

    it "routes to #index" do
      get("/items").should route_to("directory/items#index")
    end

    it "routes to #new" do
      get("/items/new").should route_to("directory/items#new")
    end

    it "routes to #show" do
      get("/items/1").should route_to("directory/items#show", :id => "1")
    end

    it "routes to #edit" do
      get("/items/1/edit").should route_to("directory/items#edit", :id => "1")
    end

    it "routes to #create" do
      post("/items").should route_to("directory/items#create")
    end

    it "routes to #update" do
      put("/items/1").should route_to("directory/items#update", :id => "1")
    end

    it "routes to #destroy" do
      delete("/items/1").should route_to("directory/items#destroy", :id => "1")
    end

  end
end
{'fraction_non_alphanumeric': 0.16468489892984542, 'fraction_numerical': 0.009512485136741973, 'mean_word_length': 2.9507042253521125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5089307', 'n_tokens_mistral': 567, 'n_tokens_neox': 560, 'n_words': 149}