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 +4 -4
- data/lib/active_mocker/generate.rb +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: 6e3687d045557f81abe6f16cca3e7472c6786005
|
4
|
+
data.tar.gz: d60e0497901f5fff8f5a07fd483c758395fcd4e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|