<commit_before>require "spec_helper"

describe <%= controller_class_name %>Controller do
  describe "routing" do

    <% unless options[:singleton] -%>
    it "recognizes and generates #index" do
      { :get => "/<%= table_name %>" }.should route_to(:controller => "<%= table_name %>", :action => "index")
    end

    <% end -%>
    it "recognizes and generates #new" do
      { :get => "/<%= table_name %>/new" }.should route_to(:controller => "<%= table_name %>", :action => "new")
    end

    it "recognizes and generates #show" do
      { :get => "/<%= table_name %>/1" }.should route_to(:controller => "<%= table_name %>", :action => "show", :id => "1")
    end

    it "recognizes and generates #edit" do
      { :get => "/<%= table_name %>/1/edit" }.should route_to(:controller => "<%= table_name %>", :action => "edit", :id => "1")
    end

    it "recognizes and generates #create" do
      { :post => "/<%= table_name %>" }.should route_to(:controller => "<%= table_name %>", :action => "create")
    end

    it "recognizes and generates #update" do
      { :put => "/<%= table_name %>/1" }.should route_to(:controller => "<%= table_name %>", :action => "update", :id => "1")
    end

    it "recognizes and generates #destroy" do
      { :delete => "/<%= table_name %>/1" }.should route_to(:controller => "<%= table_name %>", :action => "destroy", :id => "1")
    end

  end
end
<commit_msg>clean up formatting of routing specs<commit_after>require "spec_helper"

describe <%= controller_class_name %>Controller do
  describe "routing" do

<% unless options[:singleton] -%>
    it "recognizes and generates #index" do
      { :get => "/<%= table_name %>" }.should route_to(:controller => "<%= table_name %>", :action => "index")
    end

<% end -%>
    it "recognizes and generates #new" do
      { :get => "/<%= table_name %>/new" }.should route_to(:controller => "<%= table_name %>", :action => "new")
    end

    it "recognizes and generates #show" do
      { :get => "/<%= table_name %>/1" }.should route_to(:controller => "<%= table_name %>", :action => "show", :id => "1")
    end

    it "recognizes and generates #edit" do
      { :get => "/<%= table_name %>/1/edit" }.should route_to(:controller => "<%= table_name %>", :action => "edit", :id => "1")
    end

    it "recognizes and generates #create" do
      { :post => "/<%= table_name %>" }.should route_to(:controller => "<%= table_name %>", :action => "create")
    end

    it "recognizes and generates #update" do
      { :put => "/<%= table_name %>/1" }.should route_to(:controller => "<%= table_name %>", :action => "update", :id => "1")
    end

    it "recognizes and generates #destroy" do
      { :delete => "/<%= table_name %>/1" }.should route_to(:controller => "<%= table_name %>", :action => "destroy", :id => "1")
    end

  end
end

{'fraction_non_alphanumeric': 0.21223912274495932, 'fraction_numerical': 0.005659709939865582, 'mean_word_length': 3.350769230769231, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 87, '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': '5213456', 'n_tokens_mistral': 965, 'n_tokens_neox': 909, 'n_words': 255}