Sha256: 80528c36fe56da8b81b348c8bb2cba56379662d2151fb120600443a7308f9cb0

Contents?: true

Size: 367 Bytes

Versions: 4

Compression:

Stored size: 367 Bytes

Contents

require 'spec_helper'

describe '<%= klass_name %>' do

  <%- unless actions.empty? -%>
  <% actions.each do |meth, path| %>  
  it 'should <%= meth %> <%= path %>' do
    <%= meth %> '<%= path %>'
    last_response.should be_ok
  end
  
  <%- end -%>
  <%- else -%>  
  it 'should load the index' do
    get '/'
    last_response.should be_ok
  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_rspec.rb.erb
quirkey-sinatra-gen-0.4.0 app_generators/sinatra_app/templates/test/test_app_rspec.rb.erb
sinatra-gen-0.4.0 app_generators/sinatra_app/templates/test/test_app_rspec.rb.erb
sinatra-gen-0.3.0 app_generators/sinatra_app/templates/test/test_app_rspec.rb.erb