Sha256: 75b74c4febd445cc20d2adaeeaa1f220f67c56cb30dceb492644fa7ab0c3abdc
Contents?: true
Size: 639 Bytes
Versions: 84
Compression:
Stored size: 639 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../spec_helper') describe <%= class_name %>Controller do <% if actions.empty? -%> #Delete this example and add some real ones <% else -%> #Delete these examples and add some real ones <% end -%> it "should use <%= class_name %>Controller" do controller.should be_an_instance_of(<%= class_name %>Controller) end <% unless actions.empty? -%> <% for action in actions -%> describe "GET '<%= action %>'" do it "should be successful" do get '<%= action %>' response.should be_success end end <% end -%> <% end -%> end
Version data entries
84 entries across 84 versions & 13 rubygems