Module: Trellohub::Mocking::Request

Defined in:
lib/trellohub/mocking.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/trellohub/mocking.rb', line 61

def self.included(base)
  Trellohub::Mocking.request_methods.each do |m|
    base.class_eval do
      alias_method m.to_sym, :"#{m}_with_http" if method_defined? :"#{m}_with_http"
    end
  end
end