module Directive::SpecHelper::Matchers::Global

Public Instance Methods

config_return_value() click to toggle source
# File lib/directive/spec_helper/matchers/global/delegate_config_to.rb, line 51
def config_return_value
  @config_return_value ||= double
end
configure_return_value() click to toggle source
# File lib/directive/spec_helper/matchers/global/delegate_config_to.rb, line 55
def configure_return_value
  @configure_return_value ||= double
end
stub_configuration_methods() click to toggle source
# File lib/directive/spec_helper/matchers/global/delegate_config_to.rb, line 46
def stub_configuration_methods
  allow(config_module).to receive(:config).and_return(config_return_value)
  allow(config_module).to receive(:configure).and_return(configure_return_value)
end
target() click to toggle source
# File lib/directive/spec_helper/matchers/global/delegate_config_to.rb, line 42
def target
  obj.is_a?(Module) ? obj : obj.class
end