Module: Trellohub::Mocking::NoRequest
- Defined in:
- lib/trellohub/mocking.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
77 78 79 80 81 82 83 84 |
# File 'lib/trellohub/mocking.rb', line 77 def self.included(base) Trellohub::Mocking.request_methods.each do |m| base.class_eval do alias_method :"#{m}_with_http", m.to_sym unless method_defined? :"#{m}_with_http" alias_method m.to_sym, :"#{m}_without_http" end end end |