model_mocker 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/model_mocker/railtie.rb +1 -1
- data/lib/model_mocker.rb +1 -1
- metadata +2 -2
data/lib/model_mocker/railtie.rb
CHANGED
data/lib/model_mocker.rb
CHANGED
@@ -30,7 +30,7 @@ class ModelMocker
|
|
30
30
|
module ActiveRecordHook
|
31
31
|
# Create a new instance of the class, pass in creation params and then
|
32
32
|
# yield the ModelMocker instance so that methods can be called on it
|
33
|
-
def
|
33
|
+
def mock(params = {})
|
34
34
|
mock_model = ModelMocker.new(self, params)
|
35
35
|
yield(mock_model) if block_given?
|
36
36
|
mock_model.instance
|