lib/generators/rspec/templates/widget_spec.erb in rspec-apotomo-0.9.3 vs lib/generators/rspec/templates/widget_spec.erb in rspec-apotomo-0.9.4

- old
+ new

@@ -1,11 +1,14 @@ require 'spec_helper' describe <%= class_name %>Widget do has_widgets do |root| - root << widget(:<%= class_name %>) + root << widget('<%= class_name.tableize.singularize %>') end - it "should render :display" do - render_widget(:<%= class_name %>).should have_selector("h1") - end + <% for action in actions %> + it "should render :<%= action %>" do + render_widget('<%= class_name.tableize.singularize %>', :<%= action %>).should have_selector("h1") + end + <% end %> + end