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

- old
+ new

@@ -21,10 +21,10 @@ <% 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? -%> - rendered.should have_selector("tr>td", :content => <%= value_for(attribute) %>.to_s, :count => 2) + 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