Sha256: ef76b280496905bc7a18c4dfc40697f4865cd0b5fdd04a01182ae5015c8cda50

Contents?: true

Size: 324 Bytes

Versions: 8

Compression:

Stored size: 324 Bytes

Contents

require 'spec_helper'

def app
  ApplicationApi
end

describe HelloApi do
  include Rack::Test::Methods

  describe 'GET /hello' do
    it 'returns a hello world message' do
      get '/hello'
      expect(response_body).to eq({ message: 'Hello Wonderful World, from <%= app_name.classify %>!' }.to_json)
    end
  end

end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
napa-0.5.0 lib/napa/cli/templates/new/spec/apis/hello_api_spec.rb.tt
service_template-0.5.2 lib/service_template/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt
napa-0.4.3 lib/napa/cli/templates/new/spec/apis/hello_api_spec.rb.tt
service_template-0.5.1 lib/service_template/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt
service_template-0.5.0 lib/service_template/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt
napa-0.4.1 lib/napa/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt
napa-0.4.0 lib/napa/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt
napa-0.3.0 lib/napa/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt