require File.dirname(__FILE__) + '/../test_helper' class <%= controller_class_name %>ControllerTest < ActionController::TestCase def setup @<%= file_name %> = Factory(:<%= file_name %>) end should_be_restful do |resource| resource.formats = [:html, :xml] resource.destroy.flash = nil end end