Sha256: 28456e3b077485899cc2b7b4dee480737394a164a5a23453c78f310d1b15323e

Contents?: true

Size: 359 Bytes

Versions: 5

Compression:

Stored size: 359 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
quirkey-sinatra-gen-0.2.1 app_generators/sinatra_app/templates/test/test_app_rspec.rb.erb
quirkey-sinatra-gen-0.2.2 app_generators/sinatra_app/templates/test/test_app_rspec.rb.erb
vanntastic-sinatra-gen-0.2.2 app_generators/sinatra_app/templates/test/test_app_rspec.rb.erb
sinatra-gen-0.2.1 app_generators/sinatra_app/templates/test/test_app_rspec.rb.erb
sinatra-gen-0.2.2 app_generators/sinatra_app/templates/test/test_app_rspec.rb.erb