as_user 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +6 -0
- data/app/controllers/as_user/abouts_controller.rb +11 -0
- data/app/controllers/as_user/application_controller.rb +1 -0
- data/app/controllers/as_user/sessions_controller.rb +30 -0
- data/app/controllers/as_user/users_controller.rb +29 -10
- data/app/helpers/as_user/sessions_helper.rb +41 -0
- data/app/models/user.rb +15 -2
- data/app/views/as_user/abouts/index.html.erb +10 -0
- data/app/views/as_user/sessions/new.html.erb +18 -0
- data/app/views/as_user/users/_form.html.erb +6 -2
- data/app/views/as_user/users/edit.html.erb +14 -1
- data/app/views/as_user/users/edit_password.html.erb +20 -0
- data/app/views/as_user/users/index.html.erb +5 -10
- data/app/views/as_user/users/show.html.erb +3 -9
- data/config/routes.rb +11 -1
- data/lib/as_user/version.rb +1 -1
- data/test/as_user_test.rb +1 -1
- data/test/dummy/config/routes.rb +0 -1
- data/test/dummy/log/development.log +6806 -0
- data/test/dummy/log/test.log +20335 -1611
- data/test/dummy/tmp/cache/assets/C9F/E70/sprockets%2F8b67757c740fd825548e755943fcc159 +0 -0
- data/test/dummy/tmp/cache/assets/CD0/0D0/sprockets%2F8d0de3340227ac0a16d94e24230fc686 +0 -0
- data/test/dummy/tmp/cache/assets/D0E/5F0/sprockets%2Fba437c1d4e76801fd3bc104599c2c578 +0 -0
- data/test/dummy/tmp/cache/assets/D22/DD0/sprockets%2Fdac6c00d18f185d1858ff2166ee69877 +0 -0
- data/test/dummy/tmp/cache/assets/D43/1C0/sprockets%2Fce38efff2c50751ae16b548458151df4 +0 -0
- data/test/dummy/tmp/cache/assets/D71/8B0/sprockets%2Fd4cf3307f9d2c74049e38b32bfc7c1a9 +0 -0
- data/test/dummy/tmp/cache/assets/D79/0E0/sprockets%2Fafbf9d2823b6c5d256e6db15985e80c4 +0 -0
- data/test/dummy/tmp/cache/assets/D9F/CA0/sprockets%2F32d6752ac6b8fe73364a60b90cfceac9 +0 -0
- data/test/dummy/tmp/cache/assets/DE4/400/sprockets%2F5ba79f02c56ff6a6e8f5830e4e5cee8f +0 -0
- data/test/dummy/tmp/cache/assets/E44/0D0/sprockets%2Ffefa905655ba62adaadcc1b225dcd1c1 +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- data/test/factories/users.rb +14 -0
- data/test/fixtures/as_user/users.yml +6 -6
- data/test/functional/as_user/abouts_controller_test.rb +16 -0
- data/test/functional/as_user/sessions_controller_test.rb +41 -0
- data/test/functional/as_user/users_controller_test.rb +91 -16
- data/test/integration/as_user/user_flows_test.rb +34 -0
- data/test/test_helper.rb +9 -0
- data/test/unit/as_user/user_test.rb +45 -10
- metadata +39 -5
- data/test/integration/navigation_test.rb +0 -10
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
22602
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
2
|
|
3
3
|
one:
|
4
|
-
email:
|
5
|
-
name:
|
6
|
-
password_digest:
|
4
|
+
email: dummy1@example.com
|
5
|
+
name: dumma
|
6
|
+
password_digest: xxxxxxxxxxxxxxxxxxxxxxxx
|
7
7
|
|
8
8
|
two:
|
9
|
-
email:
|
10
|
-
name:
|
11
|
-
password_digest:
|
9
|
+
email: dummy2@example.com
|
10
|
+
name:dummb
|
11
|
+
password_digest: xxxxxxxxxxxxxxxxxxxxxxxx
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module AsUser
|
4
|
+
class SessionsControllerTest < ActionController::TestCase
|
5
|
+
setup do
|
6
|
+
end
|
7
|
+
|
8
|
+
teardown do
|
9
|
+
end
|
10
|
+
|
11
|
+
test "should get new" do
|
12
|
+
get :new
|
13
|
+
assert_response :success
|
14
|
+
assert_select "form"
|
15
|
+
assert_select "[name=?]","utf8"
|
16
|
+
assert_select "[name=?]","commit"
|
17
|
+
assert_select "[name=?]","user[email]",false
|
18
|
+
assert_select "[name=?]","session[email]"
|
19
|
+
assert_select "[name=?]","session[password]"
|
20
|
+
end
|
21
|
+
|
22
|
+
test "sign in then sign out" do
|
23
|
+
user = FactoryGirl.create(:user)
|
24
|
+
post :create, session: {email: user.email, password: user.password}
|
25
|
+
assert_redirected_to user
|
26
|
+
|
27
|
+
delete :destroy
|
28
|
+
assert_nil session[:user_id]
|
29
|
+
assert_redirected_to root_path
|
30
|
+
assert_equal "signed out.", flash[:notice]
|
31
|
+
end
|
32
|
+
|
33
|
+
test "sign in with invalid user" do
|
34
|
+
post :create, session: {email: "a", password: "xxx"}
|
35
|
+
assert_template :new
|
36
|
+
assert_equal "Invalid email/password combination", flash[:error]
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
@@ -2,9 +2,11 @@ require 'test_helper'
|
|
2
2
|
|
3
3
|
module AsUser
|
4
4
|
class UsersControllerTest < ActionController::TestCase
|
5
|
-
|
5
|
+
include SessionsHelper
|
6
6
|
setup do
|
7
|
-
|
7
|
+
end
|
8
|
+
|
9
|
+
teardown do
|
8
10
|
end
|
9
11
|
|
10
12
|
test "should get index" do
|
@@ -13,41 +15,114 @@ module AsUser
|
|
13
15
|
assert_not_nil assigns(:users)
|
14
16
|
end
|
15
17
|
|
18
|
+
test "should show user" do
|
19
|
+
@user = FactoryGirl.create(:user)
|
20
|
+
get :show, id: @user
|
21
|
+
assert_response :success
|
22
|
+
assert_not_nil assigns(:user)
|
23
|
+
end
|
24
|
+
|
25
|
+
test "should get edit" do
|
26
|
+
@user = FactoryGirl.create(:user)
|
27
|
+
get :edit, id: @user
|
28
|
+
assert_redirected_to signin_path
|
29
|
+
sign_in @user
|
30
|
+
get :edit, id: @user
|
31
|
+
assert_response :success
|
32
|
+
assert_not_nil assigns(:user)
|
33
|
+
assert_select "form"
|
34
|
+
assert_select "[name=?]", "user[email]"
|
35
|
+
assert_select "[name=?]", "user[name]"
|
36
|
+
assert_select "[name=?]", "user[password]",false
|
37
|
+
assert_select "[name=?]", "user[password_confirmation]",false
|
38
|
+
end
|
39
|
+
|
40
|
+
test "should get edit password" do
|
41
|
+
@user = FactoryGirl.create(:user)
|
42
|
+
get :edit_password, id: @user
|
43
|
+
assert_redirected_to signin_path
|
44
|
+
sign_in @user
|
45
|
+
get :edit_password, id: @user
|
46
|
+
assert_response :success
|
47
|
+
assert_not_nil assigns(:user)
|
48
|
+
assert_select "form"
|
49
|
+
assert_select "[name=?]", "user[email]",false
|
50
|
+
assert_select "[name=?]", "user[name]",false
|
51
|
+
assert_select "[name=?]", "user[password]"
|
52
|
+
assert_select "[name=?]", "user[password_confirmation]"
|
53
|
+
end
|
54
|
+
|
16
55
|
test "should get new" do
|
17
56
|
get :new
|
18
57
|
assert_response :success
|
58
|
+
assert_select "form"
|
59
|
+
assert_select "#user_email"
|
60
|
+
assert_select "[name=?]","utf8"
|
61
|
+
assert_select "[name=?]", "user[email]"
|
62
|
+
assert_select "[name=?]", "user[password]"
|
63
|
+
assert_select "[name=?]", "user[password_confirmation]"
|
19
64
|
end
|
20
65
|
|
21
66
|
test "should create user" do
|
22
67
|
assert_difference('User.count') do
|
23
|
-
|
68
|
+
user = FactoryGirl.build(:user)
|
69
|
+
post :create, user: { email: user.email, name: user.name, password: user.password, password_confirmation: user.password_confirmation }
|
24
70
|
end
|
25
71
|
|
72
|
+
assert_equal "User was successfully created.", flash[:notice]
|
26
73
|
assert_redirected_to user_path(assigns(:user))
|
27
74
|
end
|
28
|
-
|
29
|
-
test "
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
test "should get edit" do
|
35
|
-
get :edit, id: @user
|
36
|
-
assert_response :success
|
75
|
+
|
76
|
+
test "create invalid user with error message" do
|
77
|
+
assert_no_difference('User.count') do
|
78
|
+
post :create, user: { email: "a", name: "dummy", password: "dummy", password_confirmation: "dummy" }
|
79
|
+
end
|
80
|
+
assert_equal "create user failed.", flash[:error]
|
37
81
|
end
|
38
82
|
|
39
83
|
test "should update user" do
|
40
|
-
|
41
|
-
|
84
|
+
# update user info
|
85
|
+
@user = FactoryGirl.create(:user)
|
86
|
+
put :update, {id: @user, user: { email: "email#{Time.now.to_f}@example.com", name: "name" }}
|
87
|
+
assert_redirected_to signin_path
|
88
|
+
sign_in @user
|
89
|
+
put :update, {id: @user, user: { email: "email#{Time.now.to_f}@example.com", name: "name" }}
|
90
|
+
assert_redirected_to @user
|
91
|
+
assert_equal 'User was successfully updated.', flash[:notice]
|
92
|
+
|
93
|
+
#update user password
|
94
|
+
put :update, id: @user, user: { password: "", password_confirmation: "" }
|
95
|
+
assert_equal "update password failed.", flash[:error]
|
96
|
+
assert_redirected_to @user
|
97
|
+
put :update, id: @user, user: { password: "pwd", password_confirmation: "pwd" }
|
98
|
+
assert_equal "update password failed.", flash[:error]
|
99
|
+
assert_redirected_to @user
|
100
|
+
put :update, id: @user, user: { password: "pwd123", password_confirmation: "pwd124" }
|
101
|
+
assert_equal "update password failed.", flash[:error]
|
102
|
+
assert_redirected_to @user
|
103
|
+
put :update, id: @user, user: { password: "pwd123", password_confirmation: "pwd123" }
|
104
|
+
@user.reload
|
105
|
+
assert @user.authenticate("pwd123"), "should authenticate with new password."
|
106
|
+
assert_redirected_to @user
|
107
|
+
assert_equal 'User was successfully updated.', flash[:notice]
|
42
108
|
end
|
43
109
|
|
44
110
|
test "should destroy user" do
|
111
|
+
@user_for_destroy = FactoryGirl.create(:user)
|
112
|
+
@user_for_stay = FactoryGirl.create(:user)
|
113
|
+
assert_no_difference('User.count') do
|
114
|
+
delete :destroy, id: @user_for_destroy
|
115
|
+
end
|
116
|
+
sign_in @user_for_destroy
|
117
|
+
assert_no_difference('User.count') do
|
118
|
+
delete :destroy, id: @user_for_stay
|
119
|
+
end
|
120
|
+
assert_redirected_to root_path
|
45
121
|
assert_difference('User.count', -1) do
|
46
|
-
delete :destroy, id: @
|
122
|
+
delete :destroy, id: @user_for_destroy
|
47
123
|
end
|
48
124
|
|
49
125
|
assert_redirected_to users_path
|
50
126
|
end
|
51
|
-
=end
|
52
127
|
end
|
53
128
|
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class UserFlowsTest < ActionDispatch::IntegrationTest
|
4
|
+
test "create user and browe home and finally signout and signin again" do
|
5
|
+
#get new_user_path
|
6
|
+
get "/as_user/users/new"
|
7
|
+
assert_response :success
|
8
|
+
|
9
|
+
post_via_redirect "/as_user/users", user: {email: "dummy@example.com", name: "dummy", password: "dummy", password_confirmation: "dummy"}
|
10
|
+
loged_in_path = path
|
11
|
+
assert path =~ /as_user\/users\/\d+/
|
12
|
+
assert_equal "User was successfully created.", flash[:notice]
|
13
|
+
|
14
|
+
get "/as_user"
|
15
|
+
assert_response :success
|
16
|
+
|
17
|
+
get_via_redirect "/as_user/signin"
|
18
|
+
assert_equal loged_in_path, path
|
19
|
+
|
20
|
+
delete_via_redirect "/as_user/signout"
|
21
|
+
assert_equal "/as_user/", path
|
22
|
+
get_via_redirect "/as_user/signin"
|
23
|
+
assert_equal "/as_user/signin", path
|
24
|
+
|
25
|
+
post_via_redirect "/as_user/sessions", session: {email: "dummy", password: "dummy"}
|
26
|
+
assert_template :new
|
27
|
+
assert_equal "Invalid email/password combination", flash[:error]
|
28
|
+
post_via_redirect "/as_user/sessions", session: {email: "dummy@example.com", password: "dummy"}
|
29
|
+
assert_equal loged_in_path, path
|
30
|
+
|
31
|
+
get_via_redirect "/as_user/signin"
|
32
|
+
assert_equal loged_in_path, path
|
33
|
+
end
|
34
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -3,6 +3,9 @@ ENV["RAILS_ENV"] = "test"
|
|
3
3
|
|
4
4
|
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
5
|
require "rails/test_help"
|
6
|
+
require "factory_girl"
|
7
|
+
FactoryGirl.find_definitions
|
8
|
+
|
6
9
|
|
7
10
|
Rails.backtrace_cleaner.remove_silencers!
|
8
11
|
|
@@ -13,3 +16,9 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
13
16
|
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
17
|
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
18
|
end
|
19
|
+
|
20
|
+
class ActionController::TestCase
|
21
|
+
setup do
|
22
|
+
@routes = AsUser::Engine.routes
|
23
|
+
end
|
24
|
+
end
|
@@ -1,4 +1,16 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
+
# == Schema Information
|
3
|
+
#
|
4
|
+
# Table name: users
|
5
|
+
#
|
6
|
+
# id :integer not null, primary key
|
7
|
+
# email :string(255) not null
|
8
|
+
# name :string(100)
|
9
|
+
# password_digest :string(60)
|
10
|
+
# created_at :datetime not null
|
11
|
+
# updated_at :datetime not null
|
12
|
+
#
|
13
|
+
|
2
14
|
require 'test_helper'
|
3
15
|
|
4
16
|
module AsUser
|
@@ -11,23 +23,23 @@ module AsUser
|
|
11
23
|
end
|
12
24
|
|
13
25
|
test "only save valid user" do
|
14
|
-
email = "dummy#{Time.now.to_f}@
|
26
|
+
email = "dummy#{Time.now.to_f}@example.com"
|
15
27
|
user = User.new(email: email, name: "dummy", password: "dummy",password_confirmation: "dummy")
|
16
28
|
assert user.save
|
17
29
|
|
18
30
|
# without name
|
19
|
-
user = User.new(email: "dummy#{Time.now.to_f}@
|
31
|
+
user = User.new(email: "dummy#{Time.now.to_f}@example.com", password: "dummy",password_confirmation: "dummy")
|
20
32
|
assert !user.save
|
21
33
|
|
22
34
|
# name too long
|
23
|
-
user = User.new(email: "dummy#{Time.now.to_f}@
|
35
|
+
user = User.new(email: "dummy#{Time.now.to_f}@example.com", name: "abcdefghigabcdefghigabcdefghigabcdefghigabcdefghig", password: "dummy",password_confirmation: "dummy")
|
24
36
|
assert !user.save
|
25
|
-
user = User.new(email: "dummy#{Time.now.to_f}@
|
37
|
+
user = User.new(email: "dummy#{Time.now.to_f}@example.com", name: "abcdefghigabcdefghigabcdefghigabcdefghigabcdefghi", password: "dummy",password_confirmation: "dummy")
|
26
38
|
assert user.save
|
27
39
|
|
28
|
-
user = User.new(email: "dummy#{Time.now.to_f}@
|
40
|
+
user = User.new(email: "dummy#{Time.now.to_f}@example.com", name: "一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十", password: "dummy",password_confirmation: "dummy")
|
29
41
|
assert !user.save
|
30
|
-
user = User.new(email: "dummy#{Time.now.to_f}@
|
42
|
+
user = User.new(email: "dummy#{Time.now.to_f}@example.com", name: "一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九", password: "dummy",password_confirmation: "dummy")
|
31
43
|
assert user.save
|
32
44
|
|
33
45
|
# email invalid
|
@@ -42,16 +54,39 @@ module AsUser
|
|
42
54
|
assert user.errors.messages[:email].include? "has already been taken"
|
43
55
|
|
44
56
|
# invalid password
|
45
|
-
user = User.new(email: "dummy#{Time.now.to_f}@
|
57
|
+
user = User.new(email: "dummy#{Time.now.to_f}@example.com", name: "dummy", password: "du",password_confirmation: "dummy")
|
46
58
|
assert !user.save
|
47
|
-
user = User.new(email: "dummy#{Time.now.to_f}@
|
59
|
+
user = User.new(email: "dummy#{Time.now.to_f}@example.com", name: "dummy", password_confirmation: "dummy")
|
48
60
|
assert !user.save
|
49
|
-
user = User.new(email: "dummy#{Time.now.to_f}@
|
61
|
+
user = User.new(email: "dummy#{Time.now.to_f}@example.com", name: "dummy", password: "dummy")
|
50
62
|
assert !user.save
|
51
|
-
user = User.new(email: "dummy#{Time.now.to_f}@
|
63
|
+
user = User.new(email: "dummy#{Time.now.to_f}@example.com", name: "dummy", password: "dummy",password_confirmation: "dummz")
|
52
64
|
assert !user.save
|
53
65
|
end
|
54
66
|
|
67
|
+
test "authenticate user" do
|
68
|
+
create_dummy_user
|
69
|
+
email = "dummy@example.com"
|
70
|
+
user = User.find_by_email email
|
71
|
+
assert user.respond_to?(:authenticate)
|
72
|
+
|
73
|
+
# invalid pasword for authentication
|
74
|
+
assert user.authenticate "dummy"
|
75
|
+
assert ! user.authenticate("dummz")
|
76
|
+
end
|
77
|
+
|
78
|
+
test "delete one user" do
|
79
|
+
user = create_dummy_user
|
80
|
+
assert user.destroy
|
81
|
+
assert_equal 0,User.all.count
|
82
|
+
end
|
83
|
+
|
84
|
+
private
|
85
|
+
def create_dummy_user
|
86
|
+
email = "dummy@example.com"
|
87
|
+
user = User.create!(email: email, name: "dummy", password: "dummy",password_confirmation: "dummy")
|
88
|
+
end
|
89
|
+
|
55
90
|
end
|
56
91
|
end
|
57
92
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: as_user
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '3.0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
47
|
+
name: factory_girl_rails
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
@@ -66,15 +66,21 @@ executables: []
|
|
66
66
|
extensions: []
|
67
67
|
extra_rdoc_files: []
|
68
68
|
files:
|
69
|
+
- app/controllers/as_user/abouts_controller.rb
|
70
|
+
- app/controllers/as_user/sessions_controller.rb
|
69
71
|
- app/controllers/as_user/application_controller.rb
|
70
72
|
- app/controllers/as_user/users_controller.rb
|
73
|
+
- app/helpers/as_user/sessions_helper.rb
|
71
74
|
- app/helpers/as_user/users_helper.rb
|
72
75
|
- app/helpers/as_user/application_helper.rb
|
76
|
+
- app/views/as_user/sessions/new.html.erb
|
73
77
|
- app/views/as_user/users/show.html.erb
|
74
78
|
- app/views/as_user/users/index.html.erb
|
79
|
+
- app/views/as_user/users/edit_password.html.erb
|
75
80
|
- app/views/as_user/users/_form.html.erb
|
76
81
|
- app/views/as_user/users/edit.html.erb
|
77
82
|
- app/views/as_user/users/new.html.erb
|
83
|
+
- app/views/as_user/abouts/index.html.erb
|
78
84
|
- app/views/layouts/as_user/application.html.erb
|
79
85
|
- app/models/user.rb
|
80
86
|
- app/assets/javascripts/as_user/application.js
|
@@ -89,11 +95,14 @@ files:
|
|
89
95
|
- Rakefile
|
90
96
|
- README.rdoc
|
91
97
|
- CHANGELOG.rdoc
|
98
|
+
- test/functional/as_user/abouts_controller_test.rb
|
99
|
+
- test/functional/as_user/sessions_controller_test.rb
|
92
100
|
- test/functional/as_user/users_controller_test.rb
|
101
|
+
- test/factories/users.rb
|
93
102
|
- test/unit/helpers/as_user/users_helper_test.rb
|
94
103
|
- test/unit/as_user/user_test.rb
|
95
104
|
- test/as_user_test.rb
|
96
|
-
- test/integration/
|
105
|
+
- test/integration/as_user/user_flows_test.rb
|
97
106
|
- test/dummy/app/controllers/application_controller.rb
|
98
107
|
- test/dummy/app/helpers/application_helper.rb
|
99
108
|
- test/dummy/app/views/layouts/application.html.erb
|
@@ -125,6 +134,17 @@ files:
|
|
125
134
|
- test/dummy/config/locales/en.yml
|
126
135
|
- test/dummy/config/routes.rb
|
127
136
|
- test/dummy/config/environment.rb
|
137
|
+
- test/dummy/tmp/pids/server.pid
|
138
|
+
- test/dummy/tmp/cache/assets/CD0/0D0/sprockets%2F8d0de3340227ac0a16d94e24230fc686
|
139
|
+
- test/dummy/tmp/cache/assets/D0E/5F0/sprockets%2Fba437c1d4e76801fd3bc104599c2c578
|
140
|
+
- test/dummy/tmp/cache/assets/D71/8B0/sprockets%2Fd4cf3307f9d2c74049e38b32bfc7c1a9
|
141
|
+
- test/dummy/tmp/cache/assets/C9F/E70/sprockets%2F8b67757c740fd825548e755943fcc159
|
142
|
+
- test/dummy/tmp/cache/assets/D9F/CA0/sprockets%2F32d6752ac6b8fe73364a60b90cfceac9
|
143
|
+
- test/dummy/tmp/cache/assets/D22/DD0/sprockets%2Fdac6c00d18f185d1858ff2166ee69877
|
144
|
+
- test/dummy/tmp/cache/assets/D79/0E0/sprockets%2Fafbf9d2823b6c5d256e6db15985e80c4
|
145
|
+
- test/dummy/tmp/cache/assets/E44/0D0/sprockets%2Ffefa905655ba62adaadcc1b225dcd1c1
|
146
|
+
- test/dummy/tmp/cache/assets/DE4/400/sprockets%2F5ba79f02c56ff6a6e8f5830e4e5cee8f
|
147
|
+
- test/dummy/tmp/cache/assets/D43/1C0/sprockets%2Fce38efff2c50751ae16b548458151df4
|
128
148
|
- test/test_helper.rb
|
129
149
|
- test/fixtures/as_user/users.yml
|
130
150
|
homepage: https://github.com/as181920/as_user
|
@@ -152,11 +172,14 @@ signing_key:
|
|
152
172
|
specification_version: 3
|
153
173
|
summary: basic user handling and authentication solution for rails
|
154
174
|
test_files:
|
175
|
+
- test/functional/as_user/abouts_controller_test.rb
|
176
|
+
- test/functional/as_user/sessions_controller_test.rb
|
155
177
|
- test/functional/as_user/users_controller_test.rb
|
178
|
+
- test/factories/users.rb
|
156
179
|
- test/unit/helpers/as_user/users_helper_test.rb
|
157
180
|
- test/unit/as_user/user_test.rb
|
158
181
|
- test/as_user_test.rb
|
159
|
-
- test/integration/
|
182
|
+
- test/integration/as_user/user_flows_test.rb
|
160
183
|
- test/dummy/app/controllers/application_controller.rb
|
161
184
|
- test/dummy/app/helpers/application_helper.rb
|
162
185
|
- test/dummy/app/views/layouts/application.html.erb
|
@@ -188,6 +211,17 @@ test_files:
|
|
188
211
|
- test/dummy/config/locales/en.yml
|
189
212
|
- test/dummy/config/routes.rb
|
190
213
|
- test/dummy/config/environment.rb
|
214
|
+
- test/dummy/tmp/pids/server.pid
|
215
|
+
- test/dummy/tmp/cache/assets/CD0/0D0/sprockets%2F8d0de3340227ac0a16d94e24230fc686
|
216
|
+
- test/dummy/tmp/cache/assets/D0E/5F0/sprockets%2Fba437c1d4e76801fd3bc104599c2c578
|
217
|
+
- test/dummy/tmp/cache/assets/D71/8B0/sprockets%2Fd4cf3307f9d2c74049e38b32bfc7c1a9
|
218
|
+
- test/dummy/tmp/cache/assets/C9F/E70/sprockets%2F8b67757c740fd825548e755943fcc159
|
219
|
+
- test/dummy/tmp/cache/assets/D9F/CA0/sprockets%2F32d6752ac6b8fe73364a60b90cfceac9
|
220
|
+
- test/dummy/tmp/cache/assets/D22/DD0/sprockets%2Fdac6c00d18f185d1858ff2166ee69877
|
221
|
+
- test/dummy/tmp/cache/assets/D79/0E0/sprockets%2Fafbf9d2823b6c5d256e6db15985e80c4
|
222
|
+
- test/dummy/tmp/cache/assets/E44/0D0/sprockets%2Ffefa905655ba62adaadcc1b225dcd1c1
|
223
|
+
- test/dummy/tmp/cache/assets/DE4/400/sprockets%2F5ba79f02c56ff6a6e8f5830e4e5cee8f
|
224
|
+
- test/dummy/tmp/cache/assets/D43/1C0/sprockets%2Fce38efff2c50751ae16b548458151df4
|
191
225
|
- test/test_helper.rb
|
192
226
|
- test/fixtures/as_user/users.yml
|
193
227
|
has_rdoc:
|