Module: Fluffle::Testing::Connectable
- Defined in:
- lib/fluffle/testing.rb
Overview
Patch in a new #connect method that injects the loopback
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/fluffle/testing.rb', line 37 def self.included(klass) klass.class_eval do alias_method :original_connect, :connect def connect(*args) @connection = Loopback.instance.connection end end end |