start 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b41135c997297af9a0a57654692a2ace042f79b
|
4
|
+
data.tar.gz: dbc20f7b837455a0608641aef3502da4195e1514
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8462d67d1f460965fa8a1270a2bf95b9dbe95464f3c13b925a027bd742486d5c0323004729f90aade3e40dddd3726b8a4b6e5a3dc790adb8d4e8b4166a440a12
|
7
|
+
data.tar.gz: a30cadc7ec83a61cd67e4099dc42244c53f540aa0648f238512cbf82a24906ae1ed7ff59e7abaec3dcbf3b09287d7ac77082d6a49a6d65ca8bbb3a3f9429ec55
|
@@ -3,7 +3,7 @@ module Requests
|
|
3
3
|
def sign_in_user
|
4
4
|
@request.env["devise.mapping"] = Devise.mappings[:user]
|
5
5
|
@current_user = User.last
|
6
|
-
@current_user ||=
|
6
|
+
@current_user ||= User.create!(email: 'john@example.com', password: 'passoword')
|
7
7
|
sign_in @current_user
|
8
8
|
@current_user
|
9
9
|
end
|
@@ -11,17 +11,5 @@ module Requests
|
|
11
11
|
def current_user
|
12
12
|
@current_user
|
13
13
|
end
|
14
|
-
|
15
|
-
def sign_in_admin
|
16
|
-
@request.env["devise.mapping"] = Devise.mappings[:admin]
|
17
|
-
@current_admin = Admin.last
|
18
|
-
@current_admin ||= FactoryGirl.create(:admin)
|
19
|
-
sign_in @current_admin
|
20
|
-
@current_admin
|
21
|
-
end
|
22
|
-
|
23
|
-
def current_admin
|
24
|
-
@current_admin
|
25
|
-
end
|
26
14
|
end
|
27
15
|
end
|
data/lib/start/version.rb
CHANGED