Class: PactBroker::Api::Resources::ErrorTest
- Inherits:
-
BaseResource
- Object
- BaseResource
- PactBroker::Api::Resources::ErrorTest
- Defined in:
- lib/pact_broker/api/resources/error_test.rb
Instance Method Summary collapse
Instance Method Details
#allowed_methods ⇒ Object
16 17 18 |
# File 'lib/pact_broker/api/resources/error_test.rb', line 16 def allowed_methods ["GET", "POST", "OPTIONS"] end |
#content_types_provided ⇒ Object
10 11 12 13 14 |
# File 'lib/pact_broker/api/resources/error_test.rb', line 10 def content_types_provided [ ["application/hal+json", :to_json] ] end |
#process_post ⇒ Object
24 25 26 |
# File 'lib/pact_broker/api/resources/error_test.rb', line 24 def process_post raise PactBroker::TestError.new("Don't panic. This is a test API error.") end |
#to_json ⇒ Object
20 21 22 |
# File 'lib/pact_broker/api/resources/error_test.rb', line 20 def to_json raise PactBroker::TestError.new("Don't panic. This is a test API error.") end |