1 require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../spec_helper' 2 3 describe <%= class_name %>Controller do 4 5 <% if actions.empty? -%> 6 #Delete this example and add some real ones 7 <% else -%> 8 #Delete these examples and add some real ones 9 <% end -%> 10 it "should use <%= class_name %>Controller" do 11 controller.should be_an_instance_of(<%= class_name %>Controller) 12 end 13 14 <% unless actions.empty? -%> 15 <% for action in actions -%> 16 17 it "GET '<%= action %>' should be successful" do 18 get '<%= action %>' 19 response.should be_success 20 end 21 <% end -%> 22 <% end -%> 23 end