Sha256: 4125f927abf97da7b7f420d56970c1bf0cab096d47aa57b6a71cc5eaae6d164f

Contents?: true

Size: 329 Bytes

Versions: 6

Compression:

Stored size: 329 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(last_response.body).to eq({ message: 'Hello Wonderful World, from <%= app_name.classify %>!' }.to_json)
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
napa-0.2.1 lib/napa/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt
napa-0.2.0 lib/napa/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt
napa-0.1.29 lib/napa/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt
napa-0.1.28 lib/napa/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt
napa-0.1.26 lib/napa/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt
napa-0.1.25 lib/napa/generators/templates/scaffold/spec/apis/hello_api_spec.rb.tt