Sha256: 94ca9d06a64b8dd6e3b9c1f779ca2cdaf89dfdc9bebbb4b1cb59b3825ba23c05

Contents?: true

Size: 565 Bytes

Versions: 4

Compression:

Stored size: 565 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 body
      end
    end
    
    <%- end -%>
    <%- else -%>
    context "getting the index" do
      setup do
        get '/'
      end
      
      should "respond" do
        assert body
      end
    end
    <%- end -%>
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
quirkey-sinatra-gen-0.3.0 app_generators/sinatra_app/templates/test/test_app_shoulda.rb.erb
quirkey-sinatra-gen-0.4.0 app_generators/sinatra_app/templates/test/test_app_shoulda.rb.erb
sinatra-gen-0.4.0 app_generators/sinatra_app/templates/test/test_app_shoulda.rb.erb
sinatra-gen-0.3.0 app_generators/sinatra_app/templates/test/test_app_shoulda.rb.erb