Questions tagged [goliath]

An open source non-blocking (asynchronous) Ruby web server framework, powered by an EventMachine reactor, a high-performance HTTP parser and Ruby 1.9 runtime.

39 questions
0
votes
1 answer

PUT method return 405 in RSpec test for API

I am building RESTful web server using Goliath-Grape and using RSpec for TDD. When make the API PUT call (/api/v1/users/:id) to update an existing record from the browser I get the expected 204 response. But when I test the same API call through…
kobra
  • 4,853
  • 10
  • 32
  • 33
0
votes
1 answer

event machine errors out

I am using the happening gem, a event-machine library to persist files on S3. when i run rspec tests to "GET" a file from the aws bucket, it errors out. Error O/P: RuntimeError: eventmachine not initialized:…
Tony45
  • 3
  • 1
  • 3
0
votes
3 answers

Testing Goliath + Grape with Rspec

I'm trying to test a Goliath + Grape app like the following: require 'em-synchrony/em-mongo' require 'yajl/json_gem' require 'goliath' require 'grape' class API < Grape::API version 'v1', :using => :path format :json resource 'categories'…
Luca G. Soave
  • 12,271
  • 12
  • 58
  • 109
0
votes
1 answer

CORS SSE - Uncaught Error: SECURITY_ERR: DOM Exception 18

I am developing a streaming server which send updates like latest tweets, news ets in realtime using Goliath and SSE. This server would be mapped to different domain. index.html