Module: ActiveMocker::Rspec
- Defined in:
- lib/active_mocker/rspec.rb,
lib/active_mocker/deprecated_components/rspec.rb
Instance Method Summary collapse
-
#active_mocker ⇒ Object
ActiveMocker::LoadedMocks.
-
#mock_class(*args) ⇒ Object
deprecated
Deprecated.
method, will be removed in version 2.1
Instance Method Details
#active_mocker ⇒ Object
Returns ActiveMocker::LoadedMocks.
5 6 7 |
# File 'lib/active_mocker/rspec.rb', line 5 def active_mocker ActiveMocker::LoadedMocks end |
#mock_class(*args) ⇒ Object
Deprecated.
method, will be removed in version 2.1
Use active_mocker.mocks.find(‘ClassName’) instead To keep using until removal, require this file.
9 10 11 |
# File 'lib/active_mocker/deprecated_components/rspec.rb', line 9 def mock_class(*args) active_mocker.mocks.find(*args) end |