require 'test_helper' describe '<%= klass_name %>' do <%- unless actions.empty? -%> <% actions.each do |meth, path| %> it 'should <%= meth %> <%= path %>' do <%= meth %> '<%= path %>' @response.should be_ok end <%- end -%> <%- else -%> it 'should load the index' do get '/' @response.should be_ok end <%- end -%> end