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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d739a444e2c5d8f845e0170bbbee79ecbef1e212
4
- data.tar.gz: e6027c82b55601ce93456d8d9ee535e51c4a92ec
3
+ metadata.gz: e23446ffbd114cb1cc70afd86eb8e1f359abc760
4
+ data.tar.gz: 68cc169cc6eacf73b16f96932d7bf25786b8be0f
5
5
  SHA512:
6
- metadata.gz: 761a151ead9031267015bca01e0845c37b2cca83dabc2dfd165517eb461621d69214640e6acc65feba4e2e1d41f89ac02597a459a14a24c87dc3006603125af2
7
- data.tar.gz: 862c848b031acd417ea8382c09f2ba59f142a99f12f066dff47b7f64aae673acb0074fdeb3b4bbfab7c39aa59ffab882f6f0ade81c0e28933819ba7dd17ffff3
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(method: '<%= method.name %>', caller: Kernel.caller, arguments: [<%= method.arguments.arguments %>])
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 -%>
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveMocker
3
- VERSION = "2.4.3"
3
+ VERSION = "2.4.4"
4
4
  module Mock
5
5
  VERSION = "1" # This increments when breaking changes happen in the generated mocks
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_mocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.3
4
+ version: 2.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler