Sha256: fb4b7a38405140811a5de1bd3da06d594a33f3c90c7a935ce4c0c73141bff74e

Contents?: true

Size: 307 Bytes

Versions: 3

Compression:

Stored size: 307 Bytes

Contents

require 'spec_helper'

def app
  HelloService::API
end

describe HelloService::API 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!"}.to_json)
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
napa-0.1.2 lib/generators/templates/scaffold/spec/apis/hello_api_spec.rb
napa-0.1.1 lib/generators/templates/scaffold/spec/apis/hello_api_spec.rb
napa-0.1.0 lib/generators/templates/scaffold/spec/apis/hello_api_spec.rb