active_mocker 2.4.3 → 2.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/active_mocker/mock_template/_scopes.erb +1 -1
- data/lib/active_mocker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e23446ffbd114cb1cc70afd86eb8e1f359abc760
|
4
|
+
data.tar.gz: 68cc169cc6eacf73b16f96932d7bf25786b8be0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efff2e22e9b36d613afebff85f06b14878553c102d12f89e40c81a5ccfb57730f57c030b65a3506d63b4166292187b5e498ace9f2cfd36835ef0120f5b99227d
|
7
|
+
data.tar.gz: 332b954724a2f12ef89684f7f503d0e68ef56fbe4593ce88a4a58f88a545191e0f71f4c22580e2bc32e8f04cac455900e217f16b6135120e04d4e2f6ad54e167
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
|
+
## 2.4.4 - 2017-03-10
|
4
|
+
### Fix
|
5
|
+
- Really fix: scope methods returned `undefined method `call_mock_method' for nil:NilClass` for Mocks nested in modules.
|
3
6
|
|
4
7
|
## 2.4.3 - 2017-03-10
|
5
8
|
### Fix
|
@@ -4,7 +4,7 @@ include <%= parent_class_inspector.parent_mock_name %>::Scopes
|
|
4
4
|
|
5
5
|
<% scope_methods.each do |method| -%>
|
6
6
|
def <%= method.name %><%= "(#{method.arguments.parameters})" unless method.arguments.parameters.to_a.empty? %>
|
7
|
-
call_mock_method
|
7
|
+
<%= class_name %>.send(:call_mock_method, method: '<%= method.name %>', caller: Kernel.caller, arguments: [<%= method.arguments.arguments %>])
|
8
8
|
end
|
9
9
|
|
10
10
|
<% end -%>
|