Upgraded Rails and RSpec
[monkeycharger.git] / vendor / plugins / rspec_on_rails / generators / rspec_controller / templates / controller_spec.rb
blob9b6d0a652332968f088aec5a138cb8045b9be99b
1 require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../spec_helper'
3 describe <%= class_name %>Controller do
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
14 <% unless actions.empty? -%>
15 <% for action in actions -%>
17   it "GET '<%= action %>' should be successful" do
18     get '<%= action %>'
19     response.should be_success
20   end
21 <% end -%>
22 <% end -%>
23 end