<commit_before>require File.dirname(__FILE__) + '/spec_helper'

describe "<%= module_name %> (module)" do
  
  it "should have proper specs"
  
  # Feel free to remove the specs below
  
  before :all do
    Merb::Router.prepare { |r| r.add_slice(:<%= module_name %>) } if standalone?
  end
  
  after :all do
    Merb::Router.reset! if standalone?
  end
  
  it "should be registered in Merb::Slices.slices" do
    Merb::Slices.slices.should include(<%= module_name %>)
  end
  
  it "should be registered in Merb::Slices.paths" do
    Merb::Slices.paths[<%= module_name %>.name].should == current_slice_root
  end
  
  it "should have an :identifier property" do
    <%= module_name %>.identifier.should == "<%= base_name %>"
  end
  
  it "should have an :identifier_sym property" do
    <%= module_name %>.identifier_sym.should == :<%= symbol_name %>
  end
  
  it "should have a :root property" do
    <%= module_name %>.root.should == Merb::Slices.paths[<%= module_name %>.name]
    <%= module_name %>.root_path('app').should == current_slice_root / 'app'
  end
  
  it "should have a :file property" do
    <%= module_name %>.file.should == current_slice_root / 'lib' / '<%= base_name %>.rb'
  end
  
  it "should have metadata properties" do
    <%= module_name %>.description.should == "<%= module_name %> is a chunky Merb slice!"
    <%= module_name %>.version.should == "0.0.1"
    <%= module_name %>.author.should == "YOUR NAME"
  end
  
  it "should have :routes and :named_routes properties" do
    <%= module_name %>.routes.should_not be_empty
    <%= module_name %>.named_routes[:<%= base_name %>_index].should be_kind_of(Merb::Router::Route)
  end

  it "should have an url helper method for slice-specific routes" do
    <%= module_name %>.url(:controller => 'main', :action => 'show', :format => 'html').should == "/<%= base_name %>/main/show.html"<commit_msg>Fixed tiny bug in full slice spec generator<commit_after>require File.dirname(__FILE__) + '/spec_helper'

describe "<%= module_name %> (module)" do
  
  it "should have proper specs"
  
  # Feel free to remove the specs below
  
  before :all do
    Merb::Router.prepare { |r| r.add_slice(:<%= module_name %>) } if standalone?
  end
  
  after :all do
    Merb::Router.reset! if standalone?
  end
  
  it "should be registered in Merb::Slices.slices" do
    Merb::Slices.slices.should include(<%= module_name %>)
  end
  
  it "should be registered in Merb::Slices.paths" do
    Merb::Slices.paths[<%= module_name %>.name].should == current_slice_root
  end
  
  it "should have an :identifier property" do
    <%= module_name %>.identifier.should == "<%= base_name %>"
  end
  
  it "should have an :identifier_sym property" do
    <%= module_name %>.identifier_sym.should == :<%= symbol_name %>
  end
  
  it "should have a :root property" do
    <%= module_name %>.root.should == Merb::Slices.paths[<%= module_name %>.name]
    <%= module_name %>.root_path('app').should == current_slice_root / 'app'
  end
  
  it "should have a :file property" do
    <%= module_name %>.file.should == current_slice_root / 'lib' / '<%= base_name %>.rb'
  end
  
  it "should have metadata properties" do
    <%= module_name %>.description.should == "<%= module_name %> is a chunky Merb slice!"
    <%= module_name %>.version.should == "0.0.1"
    <%= module_name %>.author.should == "YOUR NAME"
  end
  
  it "should have :routes and :named_routes properties" do
    <%= module_name %>.routes.should_not be_empty
    <%= module_name %>.named_routes[:<%= symbol_name %>_index].should be_kind_of(Merb::Router::Route)
  end

  it "should have an url helper method for slice-specific routes" do
    <%= module_name %>.url(:controller => 'main', :action => 'show', :format => 'html').should == "/<%= base_name %>/main/show.html"
{'fraction_non_alphanumeric': 0.15725593667546175, 'fraction_numerical': 0.0015831134564643799, 'mean_word_length': 3.6458333333333335, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 53, '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': '418129', 'n_tokens_mistral': 1340, 'n_tokens_neox': 1281, 'n_words': 348}