Sha256: bc043f5f7fc9bdabfb561e10822da4645d2d3102ab719f5b4dc8b6f0bdc7ca08
Contents?: true
Size: 690 Bytes
Versions: 84
Compression:
Stored size: 690 Bytes
Contents
require File.dirname(__FILE__) + '<%= '/..' * controller_class_nesting_depth %>/../test_helper' require '<%= controller_file_path %>_controller' # Re-raise errors caught by the controller. class <%= controller_class_name %>Controller; def rescue_action(e) raise e end; end class <%= controller_class_name %>ControllerTest < Test::Unit::TestCase def setup @controller = <%= controller_class_name %>Controller.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new @<%= singular_name %> = <%= plural_name %> :one end should_be_restful do |resource| resource.formats = [:html] end end
Version data entries
84 entries across 84 versions & 23 rubygems