Sha256: 4c3c4a85a8243211d3921a31d752036bd53337aac1d240d63663419593fb253c

Contents?: true

Size: 346 Bytes

Versions: 5

Compression:

Stored size: 346 Bytes

Contents

require 'test_helper'

describe '<%= klass_name %>' do
  
  <%- unless actions.empty? -%>
  <% actions.each do |meth, path| %>  
  it 'should <%= meth %> <%= path %>' do
    <%= meth %> '<%= path %>'
    should.be.ok
  end
  
  <%- end -%>
  <%- else -%>  
  it 'should load the index' do
    get '/'
    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_spec.rb.erb
quirkey-sinatra-gen-0.2.2 app_generators/sinatra_app/templates/test/test_app_spec.rb.erb
vanntastic-sinatra-gen-0.2.2 app_generators/sinatra_app/templates/test/test_app_spec.rb.erb
sinatra-gen-0.2.2 app_generators/sinatra_app/templates/test/test_app_spec.rb.erb
sinatra-gen-0.2.1 app_generators/sinatra_app/templates/test/test_app_spec.rb.erb