Sha256: 58eb6b8fd50503da997203ef1d76fdda7b6110bab6e4db199b01e9be2264f200
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
Feature: raising exception when return structure is an instance of exception Scenario: raising exception when structure is exception Given following service definition """ class ExceptionResponse < Exception include StructureMapper::Hash attribute a: String end class SimpleService < RestfulMapper::Service base_url "http://localhost:8765" put :simple_endpoint do path "/simple" body_parameter :body responses 201 => ExceptionResponse end end """ And the service endpoint at port 8765 is running When I call service "SimpleService.simple_endpoint body: {'p1' => 'v1'}" expecting exception And exception should be raised """ ExceptionResponse.new """
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
restful_mapper-0.0.3 | features/raising_exceptions.feature |
restful_mapper-0.0.2 | features/raising_exceptions.feature |
restful_mapper-0.0.1 | features/raising_exceptions.feature |