softwear-lib 1.5.4 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/softwear/auth/spec.rb +3 -1
- data/lib/softwear/lib/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: 6233f925080da3e48097c8a65a22c015a15b61c4
|
4
|
+
data.tar.gz: 244bec492a43d14c59f318765c8d65283cac8071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d898e16f08b82ecca883f4adaa4056bb9ff3f3f3b0d5620900c0d363e85db1d200a7dcd0187900ebaf8d3d43babf2691167253cf50eb3861fa3dfd8e55d5ed7
|
7
|
+
data.tar.gz: 633f91b96bcc356362db034f6876acf03d8edc9419a769958111e8cc0170b88e3f0883cec973bcb9d307d58d0f8f4f51346187a01c7333534b24900f01780879
|
data/lib/softwear/auth/spec.rb
CHANGED
@@ -10,7 +10,7 @@ module Softwear
|
|
10
10
|
User.instance_variable_set(:@_spec_users, [])
|
11
11
|
|
12
12
|
allow(User).to receive(:all) { spec_users }
|
13
|
-
allow(User).to receive(:find) { |n| spec_users.find { |u| u.id == n } }
|
13
|
+
allow(User).to receive(:find) { |n| spec_users.find { |u| u.id.to_s == n.to_s } }
|
14
14
|
allow(User).to receive(:auth) { @_signed_in_user or false }
|
15
15
|
allow(User).to receive(:raw_query) { |q| raise "Unstubbed authentication query \"#{q}\"" }
|
16
16
|
|
@@ -19,6 +19,8 @@ module Softwear
|
|
19
19
|
.and_return('')
|
20
20
|
|
21
21
|
if (controller rescue false)
|
22
|
+
controller.class_eval { helper Softwear::Auth::Helper }
|
23
|
+
|
22
24
|
allow(controller).to receive(:current_user) { @_signed_in_user }
|
23
25
|
controller.class_eval { helper_method :current_user }
|
24
26
|
|
data/lib/softwear/lib/version.rb
CHANGED