Sha256: b8851350aba36aa687a3c01db4fd9812f4e281b19b7770b368157ec31680f628
Contents?: true
Size: 585 Bytes
Versions: 5
Compression:
Stored size: 585 Bytes
Contents
require 'test_helper' class <%= klass_name -%>Test < Test::Unit::TestCase context "<%= klass_name -%>" do <%- unless actions.empty? -%> <% actions.each do |meth, path| %> context "<%= meth %> <%= path %>" do setup do <%= meth %> '<%= path %>' end should "respond" do assert @response.body end end <%- end -%> <%- else -%> context "getting the index" do setup do get '/' end should "respond" do assert @response.body end end <%- end -%> end end
Version data entries
5 entries across 5 versions & 3 rubygems