Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/smartmock/helpers.rb
Instance Method Summary collapse
Instance Method Details
#smartmock_insert(mock, conditions = {}) ⇒ Object
114 115 116 117 118 119 |
# File 'lib/smartmock/helpers.rb', line 114 def smartmock_insert(mock, conditions={}) klass = mock.klass klass.send :include, Smartmock::Find klass.setup_smartmock_find(mock.klass) klass.insert_smartmock(mock.id, mock) end |
#smartmock_next(klass, stubs = {}) ⇒ Object
108 109 110 111 112 |
# File 'lib/smartmock/helpers.rb', line 108 def smartmock_next(klass, stubs={}) klass.send :include, Smartmock::Next klass.setup_smartmock_next klass.smartmock_next_stub(stubs) end |