pretender 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +0 -2
- data/lib/pretender.rb +1 -1
- data/lib/pretender/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: 60e5acb138e7418d36f5db31434a5804ccd72230
|
4
|
+
data.tar.gz: 9d87f62ab46dd07471752f82d0a323f585c6ffda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1f77c7fb923d3ae2f896ac1d366ef3dcb8d0dc568aaa09ce1fd6dd5fa31ad3cde50f5e9df2712a2b7179483b316d5183b3ff0c32bd1876408a29da5409b82b1
|
7
|
+
data.tar.gz: 1cbd2fe07379ed8f205d6d71e2ccd38fddd90b0766e8a266cccca25660f030652e2cd8ea1cfd5b1f2915e9032ec6e9e6d208b5a08d9f79764dddb6bb296a57ab
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/lib/pretender.rb
CHANGED
@@ -16,7 +16,7 @@ module Pretender
|
|
16
16
|
alias_method true_method, impersonated_method
|
17
17
|
else
|
18
18
|
define_method true_method do
|
19
|
-
raise Pretender::Error, "
|
19
|
+
raise Pretender::Error, "#{impersonated_method} must be defined before the impersonates method" unless ActionController::Base.method_defined?(impersonated_method)
|
20
20
|
ActionController::Base.instance_method(impersonated_method).bind(self).call
|
21
21
|
end
|
22
22
|
end
|
data/lib/pretender/version.rb
CHANGED