Sha256: f4a2a02daa11c6be47a58f541e4f4075c6d505e5d8dc619da00d2ab3babdf095
Contents?: true
Size: 591 Bytes
Versions: 250
Compression:
Stored size: 591 Bytes
Contents
require 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 -%> it "GET '<%= action %>' should be successful" do get '<%= action %>' response.should be_success end <% end -%> <% end -%> end
Version data entries
250 entries across 250 versions & 10 rubygems