Sha256: facf44db1a3d1d5044d2cb31775bf764cf761122d9644a8870dd617b8534d1a4

Contents?: true

Size: 382 Bytes

Versions: 4

Compression:

Stored size: 382 Bytes

Contents

require 'spec_helper'

module MyApp

  RSpec.describe 'HelloWorldHandler', type: :request do
    context 'sayHello' do
      it 'success' do
        request("rubypitaya.helloWorldHandler.sayHello")

        expected_response = {
          code: 'RP-200',
          data: { message: 'Hello!' } 
        }

        expect(response).to eq(expected_response)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubypitaya-2.12.0 ./lib/rubypitaya/app-template/spec/hello_world_handler_spec.rb
rubypitaya-2.11.2 ./lib/rubypitaya/app-template/spec/hello_world_handler_spec.rb
rubypitaya-2.11.1 ./lib/rubypitaya/app-template/spec/hello_world_handler_spec.rb
rubypitaya-2.11.0 ./lib/rubypitaya/app-template/spec/hello_world_handler_spec.rb