Sha256: 958754c0e7b0f0d7421f6edf5e9cd2343c4ef7bdde68dc15c95c2bd53af93d15

Contents?: true

Size: 500 Bytes

Versions: 21

Compression:

Stored size: 500 Bytes

Contents

module <%= @gen.camelname %>
  JSON_HEADERS = { 'HTTP_ACCEPT' => 'application/json' }

  describe App do
    it 'says hello' do
      get '/'
      expect(last_response).to be_ok
      expect(last_response.body).to match /Hello from <%= @gen.camelname %>/
    end

    it 'serves JSON' do
      get '/', nil, JSON_HEADERS
      expect(last_response).to be_ok
      expect(JSON.parse last_response.body).to eq (
        {
          'app' => '<%= @gen.camelname %>'
        }
      )
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
skellington-0.9.0.pre.rc1 lib/templates/sinatra/spec/app/app_spec.rb
skellington-0.8.9 lib/templates/sinatra/spec/app/app_spec.rb
skellington-0.8.8 lib/templates/sinatra/spec/app/app_spec.rb
skellington-0.8.7 lib/sinatra/templates/spec/app/app_spec.rb
skellington-0.8.6 lib/sinatra/templates/spec/app/app_spec.rb
skellington-0.8.5 lib/sinatra/templates/spec/app/app_spec.rb
skellington-0.8.4 lib/sinatra/templates/spec/app/app_spec.rb
skellington-0.8.3 lib/sinatra/templates/spec/app/app_spec.rb.eruby
skellington-0.8.2 lib/sinatra/templates/spec/app/app_spec.rb.eruby
skellington-0.8.1 lib/sinatra/templates/spec/app/app_spec.rb.eruby
skellington-0.8.0 lib/sinatra/templates/spec/app/app_spec.rb.eruby
skellington-0.7.5 lib/templates/spec/app/app_spec.rb.eruby
skellington-0.7.4 lib/templates/spec/app/app_spec.rb.eruby
skellington-0.7.3 lib/templates/spec/app/app_spec.rb.eruby
skellington-0.7.2 lib/templates/spec/app/app_spec.rb.eruby
skellington-0.7.0 lib/templates/spec/app/app_spec.rb.eruby
skellington-0.6.2 lib/templates/spec/app/app_spec.rb.eruby
skellington-0.6.1 lib/templates/spec/app/app_spec.rb.eruby
skellington-0.5.2 lib/templates/spec/app/app_spec.rb.eruby
skellington-0.5.1 lib/templates/spec/app/app_spec.rb.eruby