active_mocker 1.2.pre.7 → 1.2.pre.8

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: 5c5ae070a394af78e5ef29cb2aca45e533a563d9
4
- data.tar.gz: 43bd1f13cadc658c3cd239982ec0afac2366ea27
3
+ metadata.gz: 6e3687d045557f81abe6f16cca3e7472c6786005
4
+ data.tar.gz: d60e0497901f5fff8f5a07fd483c758395fcd4e0
5
5
  SHA512:
6
- metadata.gz: bcbb42e246ec580c8d89715e517f76a30a6f0e956442f0a10237ee57655f56d78c53c151bfe0237c791f5e0a88eb01c73939aa873368a70eaab135c4119b0a3f
7
- data.tar.gz: f79d2dd0efc6d711f4a7f2ac797a232c5418b066a14f079884567d108aea18c131fd299bc08808b862d19f141cf7f3db5bcdaa34b2b85906494e5545ebe740ee
6
+ metadata.gz: e683ee12ff201ece1df9006fec71e79ce382390fb5f862c216abaf05b0a66eecb824d4f817c0e3f41a723b8a621d1296f91e72006eb77d3b24d650a635fdd6c1
7
+ data.tar.gz: bc4b1c45bdd815e88c91247e2da4d25ed474da468b2264a140e047b5c8cd190d73094aab1eab5138e795f7b1f9e9b3cc70afe4ff2ca123d79d26dc8378ff9a63
@@ -33,7 +33,7 @@ class Generate
33
33
  end
34
34
 
35
35
  def self.load_mock(model_name, force_reload: false)
36
- Object.send(:remove_const, model_name) if force_reload && class_exists?(model_name)
36
+ Object.send(:remove_const, "#{model_name}Mock") if force_reload && class_exists?("#{model_name}Mock")
37
37
  load File.join(mock_dir, "#{model_name.tableize.singularize}_mock.rb")
38
38
  "#{model_name}Mock".constantize
39
39
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveMocker
2
- VERSION = "1.2.pre.7"
2
+ VERSION = "1.2.pre.8"
3
3
  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: 1.2.pre.7
4
+ version: 1.2.pre.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler