Class: ModelPresenter::SpecSupport

Inherits:
Object
  • Object
show all
Defined in:
lib/model_presenter/spec_support.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ SpecSupport

Returns a new instance of SpecSupport


7
8
9
# File 'lib/model_presenter/spec_support.rb', line 7

def initialize(config)
  @config = config
end

Instance Method Details

#registerObject


11
12
13
# File 'lib/model_presenter/spec_support.rb', line 11

def register
  config.extend ModelPresenter::Spec::Macros
end