lib/generators/rspec/scaffold/templates/index_spec.rb in rspec-rails-3.0.0.beta1 vs lib/generators/rspec/scaffold/templates/index_spec.rb in rspec-rails-3.0.0.beta2

- old
+ new

@@ -16,17 +16,10 @@ ]) end it "renders a list of <%= ns_table_name %>" do render -<% unless webrat? -%> - # Run the generator again with the --webrat flag if you want to use webrat matchers -<% end -%> <% for attribute in output_attributes -%> -<% if webrat? -%> - expect(rendered).to have_selector("tr>td", :content => <%= value_for(attribute) %>.to_s, :count => 2) -<% else -%> assert_select "tr>td", :text => <%= value_for(attribute) %>.to_s, :count => 2 -<% end -%> <% end -%> end end