lib/generators/rspec/scaffold/templates/index_spec.rb in rspec-rails-2.0.0.beta.1 vs lib/generators/rspec/scaffold/templates/index_spec.rb in rspec-rails-2.0.0.beta.2

- old
+ new

@@ -1,10 +1,8 @@ require 'spec_helper' <% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%> describe "<%= table_name %>/index.html.<%= options[:template_engine] %>" do - include <%= controller_class_name %>Helper - 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| -%>