Method: ExpectsChain::Expectation.mocker
- Defined in:
- lib/expects_chain/expectation.rb
.mocker ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/expects_chain/expectation.rb', line 21 def self.mocker if @_mocker.nil? framework = RSpec.configuration.mock_framework.framework_name.to_s.capitalize.to_sym raise StandardError.new("expects_chain unsupported framework: #{framework}") unless Mockers.constants.include?(framework) @_mocker = Mockers::const_get(framework) end @_mocker end |