Module: RspecApiDocumentation::DSL::Callback

Extended by:
ActiveSupport::Concern
Defined in:
lib/rspec_api_documentation/dsl/callback.rb

Overview

DSL Methods for testing server callbacks

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#callback_urlObject



22
23
24
# File 'lib/rspec_api_documentation/dsl/callback.rb', line 22

def callback_url
  raise "You must define callback_url"
end

#destinationObject



18
19
20
# File 'lib/rspec_api_documentation/dsl/callback.rb', line 18

def destination
  @destination ||= RspecApiDocumentation::TestServer.new(RSpec.current_example)
end