lib/generators/rspec/scaffold/templates/index_spec.rb in rspec-rails-2.8.0.rc2 vs lib/generators/rspec/scaffold/templates/index_spec.rb in rspec-rails-2.8.0
- old
+ new
@@ -1,8 +1,8 @@
require 'spec_helper'
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
-describe "<%= ns_table_name %>/index.html.<%= options[:template_engine] %>" do
+describe "<%= ns_table_name %>/index" do
before(:each) do
assign(:<%= table_name %>, [
<% [1,2].each_with_index do |id, model_index| -%>
stub_model(<%= class_name %><%= output_attributes.empty? ? (model_index == 1 ? ')' : '),') : ',' %>
<% output_attributes.each_with_index do |attribute, attribute_index| -%>