kadmin 0.5.7 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/kadmin/version.rb +1 -1
- data/test/controllers/auth_controller_test.rb +4 -4
- data/test/dummy/app/models/application_record.rb +4 -0
- data/test/dummy/app/models/group.rb +1 -1
- data/test/dummy/app/models/group_person.rb +1 -1
- data/test/dummy/app/models/person.rb +1 -1
- data/test/dummy/config/application.rb +0 -3
- data/test/dummy/config/environments/test.rb +2 -2
- data/test/dummy/log/test.log +877 -0
- data/test/test_helper.rb +1 -1
- data/vendor/assets/stylesheets/modular.scss +11 -0
- metadata +12 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81ae852265620e0452a89cb6c760da9a7bb1477a
|
4
|
+
data.tar.gz: 9e1c2f12f906585e034efa2edd6ccb777aae24fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 866c08f52a6699221fc39bec77d0fa2bec2ef29063bfa2716e73f3e3da644c4861912133edff3b0905f5786e60fde8040210aa7abff16579f80ae535ce88b771
|
7
|
+
data.tar.gz: e027ef27cb46544b1972f49ad490e64f2ed99029975fcf8460ace946e8e53d962705a4823e8fa49bec9ab910de6def08efedf7caa29328810b422cb715638b83
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Kadmin
|
2
2
|
|
3
|
-
[![GitHub release](https://img.shields.io/badge/release-0.
|
3
|
+
[![GitHub release](https://img.shields.io/badge/release-0.6.1-blue.png)](https://github.com/barcoo/kadmin/releases/tag/0.6.1)
|
4
4
|
|
5
5
|
Collection of utility, configuration, etc., for admin areas in different projects.
|
6
6
|
Theme based on [Modular Admin](https://github.com/modularcode/modular-admin-html)
|
data/lib/kadmin/version.rb
CHANGED
@@ -27,7 +27,7 @@ module Kadmin
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def test_save
|
30
|
-
post :save, provider: Kadmin::Auth.omniauth_provider
|
30
|
+
post :save, params: { provider: Kadmin::Auth.omniauth_provider }
|
31
31
|
assert_redirected_to auth_login_path
|
32
32
|
assert_not_nil flash.alert # it doesn't matter too much what we wrote, just that we do notify the user
|
33
33
|
|
@@ -37,20 +37,20 @@ module Kadmin
|
|
37
37
|
flexmock(Kadmin::Auth.users).should_receive(:exists?).with(existent).and_return(true)
|
38
38
|
|
39
39
|
@request.env['omniauth.auth'] = { 'info' => { 'email' => nonexistent } }
|
40
|
-
post :save, provider: Kadmin::Auth.omniauth_provider
|
40
|
+
post :save, params: { provider: Kadmin::Auth.omniauth_provider }
|
41
41
|
assert_redirected_to auth_login_path
|
42
42
|
assert_not_nil flash.alert
|
43
43
|
|
44
44
|
@request.env['omniauth.origin'] = dash_path
|
45
45
|
@request.env['omniauth.auth'] = { 'info' => { 'email' => existent } }
|
46
|
-
post :save, provider: Kadmin::Auth.omniauth_provider
|
46
|
+
post :save, params: { provider: Kadmin::Auth.omniauth_provider }
|
47
47
|
assert_redirected_to dash_path
|
48
48
|
assert_equal existent, session[Kadmin::AuthController::SESSION_KEY]
|
49
49
|
end
|
50
50
|
|
51
51
|
def test_failure
|
52
52
|
@request.env['omniauth.origin'] = 'origin'
|
53
|
-
get :failure, message: 'failed'
|
53
|
+
get :failure, params: { message: 'failed' }
|
54
54
|
assert_redirected_to auth_login_path(origin: 'origin')
|
55
55
|
assert_equal 'failed', flash.alert
|
56
56
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class Person <
|
1
|
+
class Person < ApplicationRecord
|
2
2
|
has_many :group_people, dependent: :destroy, autosave: true
|
3
3
|
has_many :groups, through: :group_people, validate: true
|
4
4
|
has_many :owned_groups, class_name: 'Group', foreign_key: 'owner_id', dependent: :nullify, autosave: true
|
@@ -30,9 +30,6 @@ module Dummy
|
|
30
30
|
# Enable assets pipeline
|
31
31
|
config.assets.enabled = true
|
32
32
|
|
33
|
-
# Do not swallow errors in after_commit/after_rollback callbacks.
|
34
|
-
config.active_record.raise_in_transactional_callbacks = true
|
35
|
-
|
36
33
|
config.autoload_paths += %W(#{config.root}/lib)
|
37
34
|
config.autoload_paths += Dir.glob("#{config.root}/../../lib/**/*").select { |f| File.directory?(f) }
|
38
35
|
|
@@ -13,8 +13,8 @@ Rails.application.configure do
|
|
13
13
|
config.eager_load = false
|
14
14
|
|
15
15
|
# Configure static file server for tests with Cache-Control for performance.
|
16
|
-
config.
|
17
|
-
config.
|
16
|
+
config.public_file_server.enabled = true
|
17
|
+
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
|
18
18
|
|
19
19
|
# Show full error reports and disable caching.
|
20
20
|
config.consider_all_requests_local = true
|
data/test/dummy/log/test.log
CHANGED
@@ -3519,3 +3519,880 @@ Redirected to http://test.host/admin/auth/unauthorized
|
|
3519
3519
|
Filter chain halted as :authorize rendered or redirected
|
3520
3520
|
Completed 302 Found in 3ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
3521
3521
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3522
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3523
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3524
|
+
---------------------------------------
|
3525
|
+
Kadmin::AuthControllerTest: test_logout
|
3526
|
+
---------------------------------------
|
3527
|
+
Processing by Kadmin::AuthController#logout as HTML
|
3528
|
+
Redirected to http://test.host/admin/auth/login
|
3529
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
|
3530
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3531
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3532
|
+
-------------------------------------
|
3533
|
+
Kadmin::AuthControllerTest: test_save
|
3534
|
+
-------------------------------------
|
3535
|
+
Processing by Kadmin::AuthController#save as HTML
|
3536
|
+
Parameters: {"provider"=>"developer"}
|
3537
|
+
No authorization hash provided
|
3538
|
+
Redirected to http://test.host/admin/auth/login
|
3539
|
+
Completed 302 Found in 15ms (ActiveRecord: 0.0ms)
|
3540
|
+
Processing by Kadmin::AuthController#save as HTML
|
3541
|
+
Parameters: {"provider"=>"developer"}
|
3542
|
+
Redirected to http://test.host/admin/auth/login
|
3543
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
3544
|
+
Processing by Kadmin::AuthController#save as HTML
|
3545
|
+
Parameters: {"provider"=>"developer"}
|
3546
|
+
Redirected to http://test.host/admin/
|
3547
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
3548
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3549
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3550
|
+
----------------------------------------
|
3551
|
+
Kadmin::AuthControllerTest: test_failure
|
3552
|
+
----------------------------------------
|
3553
|
+
Processing by Kadmin::AuthController#failure as HTML
|
3554
|
+
Parameters: {"message"=>"failed"}
|
3555
|
+
Redirected to http://test.host/admin/auth/login?origin=origin
|
3556
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
3557
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3558
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3559
|
+
--------------------------------------
|
3560
|
+
Kadmin::AuthControllerTest: test_login
|
3561
|
+
--------------------------------------
|
3562
|
+
Processing by Kadmin::AuthController#login as HTML
|
3563
|
+
Rendering /Users/npepinpe/work/github/barcoo/kadmin/app/views/kadmin/auth/login.html.erb within layouts/kadmin/application
|
3564
|
+
Rendered /Users/npepinpe/work/github/barcoo/kadmin/app/views/kadmin/auth/login.html.erb within layouts/kadmin/application (1.7ms)
|
3565
|
+
Rendered /Users/npepinpe/work/github/barcoo/kadmin/app/views/kadmin/helpers/_alerts.html.erb (0.4ms)
|
3566
|
+
Completed 200 OK in 35ms (Views: 34.4ms | ActiveRecord: 0.0ms)
|
3567
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3568
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3569
|
+
-------------------------------------------------------
|
3570
|
+
Kadmin::Navbar::Link::PresenterTest: test_render_active
|
3571
|
+
-------------------------------------------------------
|
3572
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3573
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3574
|
+
------------------------------------------------
|
3575
|
+
Kadmin::Navbar::Link::PresenterTest: test_render
|
3576
|
+
------------------------------------------------
|
3577
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3578
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3579
|
+
-------------------------------
|
3580
|
+
Kadmin::FinderTest: test_filter
|
3581
|
+
-------------------------------
|
3582
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3583
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:43:52 UTC], ["updated_at", 2016-12-14 09:43:52 UTC]]
|
3584
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3585
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3586
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:43:52 UTC], ["updated_at", 2016-12-14 09:43:52 UTC]]
|
3587
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3588
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" WHERE (`people`.`first_name` LIKE '%John%' OR `people`.`last_name` LIKE '%John%')[0m
|
3589
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" WHERE (`people`.`first_name` LIKE '%John%' OR `people`.`last_name` LIKE '%John%') AND (`people`.`first_name` LIKE '%Jane%' OR `people`.`last_name` LIKE '%Jane%')[0m
|
3590
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
3591
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3592
|
+
---------------------------------
|
3593
|
+
Kadmin::FinderTest: test_paginate
|
3594
|
+
---------------------------------
|
3595
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3596
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:43:52 UTC], ["updated_at", 2016-12-14 09:43:52 UTC]]
|
3597
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3598
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3599
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:43:52 UTC], ["updated_at", 2016-12-14 09:43:52 UTC]]
|
3600
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3601
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
3602
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3603
|
+
------------------------------
|
3604
|
+
Kadmin::FinderTest: test_find!
|
3605
|
+
------------------------------
|
3606
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3607
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:43:52 UTC], ["updated_at", 2016-12-14 09:43:52 UTC]]
|
3608
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3609
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3610
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:43:52 UTC], ["updated_at", 2016-12-14 09:43:52 UTC]]
|
3611
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3612
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people"[0m
|
3613
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "people"[0m
|
3614
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" LIMIT ? OFFSET ?[0m [["LIMIT", 1], ["OFFSET", 1]]
|
3615
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
3616
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3617
|
+
--------------------------------
|
3618
|
+
Kadmin::FinderTest: test_results
|
3619
|
+
--------------------------------
|
3620
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3621
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:43:52 UTC], ["updated_at", 2016-12-14 09:43:52 UTC]]
|
3622
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3623
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3624
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:43:52 UTC], ["updated_at", 2016-12-14 09:43:52 UTC]]
|
3625
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3626
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people"[0m
|
3627
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "people"[0m
|
3628
|
+
[1m[36mPerson Load (0.0ms)[0m [1m[34mSELECT "people".* FROM "people" LIMIT ? OFFSET ?[0m [["LIMIT", 1], ["OFFSET", 1]]
|
3629
|
+
[1m[36mPerson Load (0.2ms)[0m [1m[34mSELECT "people".* FROM "people" ORDER BY "people"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
3630
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
3631
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3632
|
+
-----------------------------------------------------
|
3633
|
+
Kadmin::Concerns::AuthorizedUserTest: test_logged_in?
|
3634
|
+
-----------------------------------------------------
|
3635
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3636
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3637
|
+
------------------------------------------------------
|
3638
|
+
Kadmin::Concerns::AuthorizedUserTest: test_authorized?
|
3639
|
+
------------------------------------------------------
|
3640
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3641
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3642
|
+
----------------------------------------------------------
|
3643
|
+
Kadmin::Concerns::AuthorizedUserTest: test_authorized_user
|
3644
|
+
----------------------------------------------------------
|
3645
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3646
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3647
|
+
----------------------------------------------------
|
3648
|
+
Kadmin::Concerns::AuthorizedUserTest: test_authorize
|
3649
|
+
----------------------------------------------------
|
3650
|
+
Processing by AuthorizedController#index as HTML
|
3651
|
+
Rendering authorized/index.html.erb within layouts/application
|
3652
|
+
Rendered authorized/index.html.erb within layouts/application (0.4ms)
|
3653
|
+
Completed 200 OK in 28ms (Views: 12.9ms | ActiveRecord: 0.0ms)
|
3654
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3655
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3656
|
+
-------------------------------------------------------
|
3657
|
+
Kadmin::Concerns::AuthorizedUserTest: test_current_user
|
3658
|
+
-------------------------------------------------------
|
3659
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3660
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3661
|
+
-------------------------------------
|
3662
|
+
Kadmin::PagerTest: test_current_page?
|
3663
|
+
-------------------------------------
|
3664
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3665
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3666
|
+
--------------------------------------
|
3667
|
+
Kadmin::PagerTest: test_initialization
|
3668
|
+
--------------------------------------
|
3669
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3670
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3671
|
+
----------------------------------
|
3672
|
+
Kadmin::PagerTest: test_next_page?
|
3673
|
+
----------------------------------
|
3674
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3675
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3676
|
+
--------------------------------------
|
3677
|
+
Kadmin::PagerTest: test_previous_page?
|
3678
|
+
--------------------------------------
|
3679
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3680
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3681
|
+
---------------------------------
|
3682
|
+
Kadmin::PagerTest: test_page_size
|
3683
|
+
---------------------------------
|
3684
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3685
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3686
|
+
--------------------------------
|
3687
|
+
Kadmin::PagerTest: test_paginate
|
3688
|
+
--------------------------------
|
3689
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3690
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:43:52 UTC], ["updated_at", 2016-12-14 09:43:52 UTC]]
|
3691
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3692
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3693
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Doe"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:43:52 UTC], ["updated_at", 2016-12-14 09:43:52 UTC]]
|
3694
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3695
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "people"[0m
|
3696
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
3697
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3698
|
+
------------------------------
|
3699
|
+
Kadmin::PagerTest: test_total=
|
3700
|
+
------------------------------
|
3701
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3702
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3703
|
+
---------------------------------
|
3704
|
+
Kadmin::PagerTest: test_offset_at
|
3705
|
+
---------------------------------
|
3706
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3707
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3708
|
+
---------------------------------
|
3709
|
+
Kadmin::PagerTest: test_contains?
|
3710
|
+
---------------------------------
|
3711
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3712
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3713
|
+
---------------------------------------------------
|
3714
|
+
Kadmin::Navbar::Section::PresenterTest: test_render
|
3715
|
+
---------------------------------------------------
|
3716
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3717
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3718
|
+
--------------------------------------------------------
|
3719
|
+
Kadmin::Navbar::Section::PresenterTest: test_render_open
|
3720
|
+
--------------------------------------------------------
|
3721
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
3722
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3723
|
+
---------------------------------
|
3724
|
+
Kadmin::FormTest: test_initialize
|
3725
|
+
---------------------------------
|
3726
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3727
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "first"], ["last_name", "last"], ["gender", "m"], ["date_of_birth", Sun, 14 Dec 2014], ["created_at", 2016-12-14 09:43:52 UTC], ["updated_at", 2016-12-14 09:43:52 UTC]]
|
3728
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3729
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
3730
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3731
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3732
|
+
---------------------------------
|
3733
|
+
Kadmin::FormTest: test_initialize
|
3734
|
+
---------------------------------
|
3735
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3736
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "first"], ["last_name", "last"], ["gender", "m"], ["date_of_birth", Sun, 14 Dec 2014], ["created_at", 2016-12-14 09:44:29 UTC], ["updated_at", 2016-12-14 09:44:29 UTC]]
|
3737
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3738
|
+
[1m[35m (25.5ms)[0m [1m[31mrollback transaction[0m
|
3739
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3740
|
+
---------------------------------------
|
3741
|
+
Kadmin::AuthControllerTest: test_logout
|
3742
|
+
---------------------------------------
|
3743
|
+
Processing by Kadmin::AuthController#logout as HTML
|
3744
|
+
Redirected to http://test.host/admin/auth/login
|
3745
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
|
3746
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3747
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3748
|
+
-------------------------------------
|
3749
|
+
Kadmin::AuthControllerTest: test_save
|
3750
|
+
-------------------------------------
|
3751
|
+
Processing by Kadmin::AuthController#save as HTML
|
3752
|
+
Parameters: {"provider"=>"developer"}
|
3753
|
+
No authorization hash provided
|
3754
|
+
Redirected to http://test.host/admin/auth/login
|
3755
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
|
3756
|
+
Processing by Kadmin::AuthController#save as HTML
|
3757
|
+
Parameters: {"provider"=>"developer"}
|
3758
|
+
Redirected to http://test.host/admin/auth/login
|
3759
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
3760
|
+
Processing by Kadmin::AuthController#save as HTML
|
3761
|
+
Parameters: {"provider"=>"developer"}
|
3762
|
+
Redirected to http://test.host/admin/
|
3763
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
3764
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3765
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3766
|
+
--------------------------------------
|
3767
|
+
Kadmin::AuthControllerTest: test_login
|
3768
|
+
--------------------------------------
|
3769
|
+
Processing by Kadmin::AuthController#login as HTML
|
3770
|
+
Rendering /Users/npepinpe/work/github/barcoo/kadmin/app/views/kadmin/auth/login.html.erb within layouts/kadmin/application
|
3771
|
+
Rendered /Users/npepinpe/work/github/barcoo/kadmin/app/views/kadmin/auth/login.html.erb within layouts/kadmin/application (1.5ms)
|
3772
|
+
Rendered /Users/npepinpe/work/github/barcoo/kadmin/app/views/kadmin/helpers/_alerts.html.erb (0.3ms)
|
3773
|
+
Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.0ms)
|
3774
|
+
Processing by Kadmin::AuthController#login as HTML
|
3775
|
+
Redirected to http://test.host/admin/
|
3776
|
+
Completed 302 Found in 1ms (Views: 11.9ms | ActiveRecord: 0.0ms)
|
3777
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3778
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3779
|
+
----------------------------------------
|
3780
|
+
Kadmin::AuthControllerTest: test_failure
|
3781
|
+
----------------------------------------
|
3782
|
+
Processing by Kadmin::AuthController#failure as HTML
|
3783
|
+
Parameters: {"message"=>"failed"}
|
3784
|
+
Redirected to http://test.host/admin/auth/login?origin=origin
|
3785
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
3786
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3787
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3788
|
+
--------------------------------------------------------
|
3789
|
+
Kadmin::Navbar::Section::PresenterTest: test_render_open
|
3790
|
+
--------------------------------------------------------
|
3791
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3792
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3793
|
+
---------------------------------------------------
|
3794
|
+
Kadmin::Navbar::Section::PresenterTest: test_render
|
3795
|
+
---------------------------------------------------
|
3796
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3797
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3798
|
+
------------------------------------------------------
|
3799
|
+
Kadmin::Concerns::AuthorizedUserTest: test_authorized?
|
3800
|
+
------------------------------------------------------
|
3801
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3802
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3803
|
+
----------------------------------------------------------
|
3804
|
+
Kadmin::Concerns::AuthorizedUserTest: test_authorized_user
|
3805
|
+
----------------------------------------------------------
|
3806
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3807
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3808
|
+
----------------------------------------------------
|
3809
|
+
Kadmin::Concerns::AuthorizedUserTest: test_authorize
|
3810
|
+
----------------------------------------------------
|
3811
|
+
Processing by AuthorizedController#index as HTML
|
3812
|
+
Rendering authorized/index.html.erb within layouts/application
|
3813
|
+
Rendered authorized/index.html.erb within layouts/application (0.3ms)
|
3814
|
+
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms)
|
3815
|
+
Processing by AuthorizedController#index as HTML
|
3816
|
+
Redirected to http://test.host/admin/auth/login?origin=%2Fauthorized
|
3817
|
+
Filter chain halted as :authorize rendered or redirected
|
3818
|
+
Completed 302 Found in 0ms (Views: 3.6ms | ActiveRecord: 0.0ms)
|
3819
|
+
Processing by AuthorizedController#index as HTML
|
3820
|
+
Rendering authorized/index.html.erb within layouts/application
|
3821
|
+
Rendered authorized/index.html.erb within layouts/application (0.0ms)
|
3822
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
3823
|
+
Processing by AuthorizedController#index as HTML
|
3824
|
+
Redirected to http://test.host/admin/auth/unauthorized
|
3825
|
+
Filter chain halted as :authorize rendered or redirected
|
3826
|
+
Completed 302 Found in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
3827
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3828
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3829
|
+
-----------------------------------------------------
|
3830
|
+
Kadmin::Concerns::AuthorizedUserTest: test_logged_in?
|
3831
|
+
-----------------------------------------------------
|
3832
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3833
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3834
|
+
-------------------------------------------------------
|
3835
|
+
Kadmin::Concerns::AuthorizedUserTest: test_current_user
|
3836
|
+
-------------------------------------------------------
|
3837
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3838
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3839
|
+
---------------------------------
|
3840
|
+
Kadmin::FinderTest: test_paginate
|
3841
|
+
---------------------------------
|
3842
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3843
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:44:29 UTC], ["updated_at", 2016-12-14 09:44:29 UTC]]
|
3844
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3845
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3846
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:44:29 UTC], ["updated_at", 2016-12-14 09:44:29 UTC]]
|
3847
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3848
|
+
[1m[35m (23.7ms)[0m [1m[31mrollback transaction[0m
|
3849
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3850
|
+
------------------------------
|
3851
|
+
Kadmin::FinderTest: test_find!
|
3852
|
+
------------------------------
|
3853
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3854
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:44:29 UTC], ["updated_at", 2016-12-14 09:44:29 UTC]]
|
3855
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3856
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3857
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:44:29 UTC], ["updated_at", 2016-12-14 09:44:29 UTC]]
|
3858
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3859
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people"[0m
|
3860
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "people"[0m
|
3861
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" LIMIT ? OFFSET ?[0m [["LIMIT", 1], ["OFFSET", 1]]
|
3862
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
3863
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3864
|
+
-------------------------------
|
3865
|
+
Kadmin::FinderTest: test_filter
|
3866
|
+
-------------------------------
|
3867
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3868
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:44:29 UTC], ["updated_at", 2016-12-14 09:44:29 UTC]]
|
3869
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3870
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3871
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:44:29 UTC], ["updated_at", 2016-12-14 09:44:29 UTC]]
|
3872
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3873
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" WHERE (`people`.`first_name` LIKE '%John%' OR `people`.`last_name` LIKE '%John%')[0m
|
3874
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" WHERE (`people`.`first_name` LIKE '%John%' OR `people`.`last_name` LIKE '%John%') AND (`people`.`first_name` LIKE '%Jane%' OR `people`.`last_name` LIKE '%Jane%')[0m
|
3875
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
3876
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3877
|
+
--------------------------------
|
3878
|
+
Kadmin::FinderTest: test_results
|
3879
|
+
--------------------------------
|
3880
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3881
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:44:29 UTC], ["updated_at", 2016-12-14 09:44:29 UTC]]
|
3882
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3883
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3884
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:44:29 UTC], ["updated_at", 2016-12-14 09:44:29 UTC]]
|
3885
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3886
|
+
[1m[36mPerson Load (0.0ms)[0m [1m[34mSELECT "people".* FROM "people"[0m
|
3887
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "people"[0m
|
3888
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" LIMIT ? OFFSET ?[0m [["LIMIT", 1], ["OFFSET", 1]]
|
3889
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" ORDER BY "people"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
3890
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
3891
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3892
|
+
-------------------------------------------------------
|
3893
|
+
Kadmin::Navbar::Link::PresenterTest: test_render_active
|
3894
|
+
-------------------------------------------------------
|
3895
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3896
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3897
|
+
------------------------------------------------
|
3898
|
+
Kadmin::Navbar::Link::PresenterTest: test_render
|
3899
|
+
------------------------------------------------
|
3900
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3901
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3902
|
+
--------------------------------
|
3903
|
+
Kadmin::PagerTest: test_paginate
|
3904
|
+
--------------------------------
|
3905
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3906
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:44:29 UTC], ["updated_at", 2016-12-14 09:44:29 UTC]]
|
3907
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3908
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
3909
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Doe"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:44:29 UTC], ["updated_at", 2016-12-14 09:44:29 UTC]]
|
3910
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
3911
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "people"[0m
|
3912
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
3913
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3914
|
+
--------------------------------------
|
3915
|
+
Kadmin::PagerTest: test_initialization
|
3916
|
+
--------------------------------------
|
3917
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3918
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3919
|
+
------------------------------
|
3920
|
+
Kadmin::PagerTest: test_total=
|
3921
|
+
------------------------------
|
3922
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3923
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3924
|
+
---------------------------------
|
3925
|
+
Kadmin::PagerTest: test_offset_at
|
3926
|
+
---------------------------------
|
3927
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3928
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3929
|
+
----------------------------------
|
3930
|
+
Kadmin::PagerTest: test_next_page?
|
3931
|
+
----------------------------------
|
3932
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3933
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3934
|
+
---------------------------------
|
3935
|
+
Kadmin::PagerTest: test_contains?
|
3936
|
+
---------------------------------
|
3937
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3938
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3939
|
+
-------------------------------------
|
3940
|
+
Kadmin::PagerTest: test_current_page?
|
3941
|
+
-------------------------------------
|
3942
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3943
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3944
|
+
--------------------------------------
|
3945
|
+
Kadmin::PagerTest: test_previous_page?
|
3946
|
+
--------------------------------------
|
3947
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3948
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3949
|
+
---------------------------------
|
3950
|
+
Kadmin::PagerTest: test_page_size
|
3951
|
+
---------------------------------
|
3952
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3953
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3954
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3955
|
+
---------------------------------------------------
|
3956
|
+
Kadmin::Navbar::Section::PresenterTest: test_render
|
3957
|
+
---------------------------------------------------
|
3958
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3959
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3960
|
+
--------------------------------------------------------
|
3961
|
+
Kadmin::Navbar::Section::PresenterTest: test_render_open
|
3962
|
+
--------------------------------------------------------
|
3963
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3964
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3965
|
+
-------------------------------------
|
3966
|
+
Kadmin::AuthControllerTest: test_save
|
3967
|
+
-------------------------------------
|
3968
|
+
Processing by Kadmin::AuthController#save as HTML
|
3969
|
+
Parameters: {"provider"=>"developer"}
|
3970
|
+
No authorization hash provided
|
3971
|
+
Redirected to http://test.host/admin/auth/login
|
3972
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
|
3973
|
+
Processing by Kadmin::AuthController#save as HTML
|
3974
|
+
Parameters: {"provider"=>"developer"}
|
3975
|
+
Redirected to http://test.host/admin/auth/login
|
3976
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
3977
|
+
Processing by Kadmin::AuthController#save as HTML
|
3978
|
+
Parameters: {"provider"=>"developer"}
|
3979
|
+
Redirected to http://test.host/admin/
|
3980
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
3981
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
3982
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3983
|
+
---------------------------------------
|
3984
|
+
Kadmin::AuthControllerTest: test_logout
|
3985
|
+
---------------------------------------
|
3986
|
+
Processing by Kadmin::AuthController#logout as HTML
|
3987
|
+
Redirected to http://test.host/admin/auth/login
|
3988
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
3989
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
3990
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3991
|
+
--------------------------------------
|
3992
|
+
Kadmin::AuthControllerTest: test_login
|
3993
|
+
--------------------------------------
|
3994
|
+
Processing by Kadmin::AuthController#login as HTML
|
3995
|
+
Rendering /Users/npepinpe/work/github/barcoo/kadmin/app/views/kadmin/auth/login.html.erb within layouts/kadmin/application
|
3996
|
+
Rendered /Users/npepinpe/work/github/barcoo/kadmin/app/views/kadmin/auth/login.html.erb within layouts/kadmin/application (1.5ms)
|
3997
|
+
Rendered /Users/npepinpe/work/github/barcoo/kadmin/app/views/kadmin/helpers/_alerts.html.erb (0.4ms)
|
3998
|
+
Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms)
|
3999
|
+
Processing by Kadmin::AuthController#login as HTML
|
4000
|
+
Redirected to http://test.host/admin/
|
4001
|
+
Completed 302 Found in 0ms (Views: 10.9ms | ActiveRecord: 0.0ms)
|
4002
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4003
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4004
|
+
----------------------------------------
|
4005
|
+
Kadmin::AuthControllerTest: test_failure
|
4006
|
+
----------------------------------------
|
4007
|
+
Processing by Kadmin::AuthController#failure as HTML
|
4008
|
+
Parameters: {"message"=>"failed"}
|
4009
|
+
Redirected to http://test.host/admin/auth/login?origin=origin
|
4010
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
4011
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4012
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4013
|
+
---------------------------------
|
4014
|
+
Kadmin::FinderTest: test_paginate
|
4015
|
+
---------------------------------
|
4016
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4017
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:47:09 UTC], ["updated_at", 2016-12-14 09:47:09 UTC]]
|
4018
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4019
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4020
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:47:09 UTC], ["updated_at", 2016-12-14 09:47:09 UTC]]
|
4021
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4022
|
+
[1m[35m (19.8ms)[0m [1m[31mrollback transaction[0m
|
4023
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4024
|
+
--------------------------------
|
4025
|
+
Kadmin::FinderTest: test_results
|
4026
|
+
--------------------------------
|
4027
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4028
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:47:09 UTC], ["updated_at", 2016-12-14 09:47:09 UTC]]
|
4029
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4030
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4031
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:47:09 UTC], ["updated_at", 2016-12-14 09:47:09 UTC]]
|
4032
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4033
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people"[0m
|
4034
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "people"[0m
|
4035
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" LIMIT ? OFFSET ?[0m [["LIMIT", 1], ["OFFSET", 1]]
|
4036
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" ORDER BY "people"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
4037
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
4038
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4039
|
+
------------------------------
|
4040
|
+
Kadmin::FinderTest: test_find!
|
4041
|
+
------------------------------
|
4042
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4043
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:47:09 UTC], ["updated_at", 2016-12-14 09:47:09 UTC]]
|
4044
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4045
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4046
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:47:09 UTC], ["updated_at", 2016-12-14 09:47:09 UTC]]
|
4047
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4048
|
+
[1m[36mPerson Load (0.0ms)[0m [1m[34mSELECT "people".* FROM "people"[0m
|
4049
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "people"[0m
|
4050
|
+
[1m[36mPerson Load (0.0ms)[0m [1m[34mSELECT "people".* FROM "people" LIMIT ? OFFSET ?[0m [["LIMIT", 1], ["OFFSET", 1]]
|
4051
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
4052
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4053
|
+
-------------------------------
|
4054
|
+
Kadmin::FinderTest: test_filter
|
4055
|
+
-------------------------------
|
4056
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4057
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:47:09 UTC], ["updated_at", 2016-12-14 09:47:09 UTC]]
|
4058
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4059
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4060
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:47:09 UTC], ["updated_at", 2016-12-14 09:47:09 UTC]]
|
4061
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4062
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" WHERE (`people`.`first_name` LIKE '%John%' OR `people`.`last_name` LIKE '%John%')[0m
|
4063
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" WHERE (`people`.`first_name` LIKE '%John%' OR `people`.`last_name` LIKE '%John%') AND (`people`.`first_name` LIKE '%Jane%' OR `people`.`last_name` LIKE '%Jane%')[0m
|
4064
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
4065
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4066
|
+
---------------------------------
|
4067
|
+
Kadmin::PagerTest: test_contains?
|
4068
|
+
---------------------------------
|
4069
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4070
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4071
|
+
-------------------------------------
|
4072
|
+
Kadmin::PagerTest: test_current_page?
|
4073
|
+
-------------------------------------
|
4074
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4075
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4076
|
+
--------------------------------
|
4077
|
+
Kadmin::PagerTest: test_paginate
|
4078
|
+
--------------------------------
|
4079
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4080
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:47:09 UTC], ["updated_at", 2016-12-14 09:47:09 UTC]]
|
4081
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4082
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4083
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Doe"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:47:09 UTC], ["updated_at", 2016-12-14 09:47:09 UTC]]
|
4084
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4085
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "people"[0m
|
4086
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
4087
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4088
|
+
------------------------------
|
4089
|
+
Kadmin::PagerTest: test_total=
|
4090
|
+
------------------------------
|
4091
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4092
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4093
|
+
--------------------------------------
|
4094
|
+
Kadmin::PagerTest: test_initialization
|
4095
|
+
--------------------------------------
|
4096
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4097
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4098
|
+
---------------------------------
|
4099
|
+
Kadmin::PagerTest: test_offset_at
|
4100
|
+
---------------------------------
|
4101
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4102
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4103
|
+
---------------------------------
|
4104
|
+
Kadmin::PagerTest: test_page_size
|
4105
|
+
---------------------------------
|
4106
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4107
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4108
|
+
--------------------------------------
|
4109
|
+
Kadmin::PagerTest: test_previous_page?
|
4110
|
+
--------------------------------------
|
4111
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4112
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4113
|
+
----------------------------------
|
4114
|
+
Kadmin::PagerTest: test_next_page?
|
4115
|
+
----------------------------------
|
4116
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4117
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4118
|
+
------------------------------------------------------
|
4119
|
+
Kadmin::Concerns::AuthorizedUserTest: test_authorized?
|
4120
|
+
------------------------------------------------------
|
4121
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4122
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4123
|
+
----------------------------------------------------------
|
4124
|
+
Kadmin::Concerns::AuthorizedUserTest: test_authorized_user
|
4125
|
+
----------------------------------------------------------
|
4126
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4127
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4128
|
+
-------------------------------------------------------
|
4129
|
+
Kadmin::Concerns::AuthorizedUserTest: test_current_user
|
4130
|
+
-------------------------------------------------------
|
4131
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4132
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4133
|
+
-----------------------------------------------------
|
4134
|
+
Kadmin::Concerns::AuthorizedUserTest: test_logged_in?
|
4135
|
+
-----------------------------------------------------
|
4136
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4137
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4138
|
+
----------------------------------------------------
|
4139
|
+
Kadmin::Concerns::AuthorizedUserTest: test_authorize
|
4140
|
+
----------------------------------------------------
|
4141
|
+
Processing by AuthorizedController#index as HTML
|
4142
|
+
Rendering authorized/index.html.erb within layouts/application
|
4143
|
+
Rendered authorized/index.html.erb within layouts/application (0.7ms)
|
4144
|
+
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
4145
|
+
Processing by AuthorizedController#index as HTML
|
4146
|
+
Redirected to http://test.host/admin/auth/login?origin=%2Fauthorized
|
4147
|
+
Filter chain halted as :authorize rendered or redirected
|
4148
|
+
Completed 302 Found in 0ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
4149
|
+
Processing by AuthorizedController#index as HTML
|
4150
|
+
Rendering authorized/index.html.erb within layouts/application
|
4151
|
+
Rendered authorized/index.html.erb within layouts/application (0.0ms)
|
4152
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
4153
|
+
Processing by AuthorizedController#index as HTML
|
4154
|
+
Redirected to http://test.host/admin/auth/unauthorized
|
4155
|
+
Filter chain halted as :authorize rendered or redirected
|
4156
|
+
Completed 302 Found in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
4157
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4158
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4159
|
+
------------------------------------------------
|
4160
|
+
Kadmin::Navbar::Link::PresenterTest: test_render
|
4161
|
+
------------------------------------------------
|
4162
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4163
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4164
|
+
-------------------------------------------------------
|
4165
|
+
Kadmin::Navbar::Link::PresenterTest: test_render_active
|
4166
|
+
-------------------------------------------------------
|
4167
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4168
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4169
|
+
---------------------------------
|
4170
|
+
Kadmin::FormTest: test_initialize
|
4171
|
+
---------------------------------
|
4172
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4173
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "first"], ["last_name", "last"], ["gender", "m"], ["date_of_birth", Sun, 14 Dec 2014], ["created_at", 2016-12-14 09:47:09 UTC], ["updated_at", 2016-12-14 09:47:09 UTC]]
|
4174
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4175
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
4176
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4177
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4178
|
+
---------------------------------------------------
|
4179
|
+
Kadmin::Navbar::Section::PresenterTest: test_render
|
4180
|
+
---------------------------------------------------
|
4181
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4182
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4183
|
+
--------------------------------------------------------
|
4184
|
+
Kadmin::Navbar::Section::PresenterTest: test_render_open
|
4185
|
+
--------------------------------------------------------
|
4186
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4187
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
4188
|
+
------------------------------------------------------
|
4189
|
+
Kadmin::Concerns::AuthorizedUserTest: test_authorized?
|
4190
|
+
------------------------------------------------------
|
4191
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4192
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4193
|
+
-----------------------------------------------------
|
4194
|
+
Kadmin::Concerns::AuthorizedUserTest: test_logged_in?
|
4195
|
+
-----------------------------------------------------
|
4196
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4197
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4198
|
+
----------------------------------------------------------
|
4199
|
+
Kadmin::Concerns::AuthorizedUserTest: test_authorized_user
|
4200
|
+
----------------------------------------------------------
|
4201
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4202
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4203
|
+
-------------------------------------------------------
|
4204
|
+
Kadmin::Concerns::AuthorizedUserTest: test_current_user
|
4205
|
+
-------------------------------------------------------
|
4206
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4207
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4208
|
+
----------------------------------------------------
|
4209
|
+
Kadmin::Concerns::AuthorizedUserTest: test_authorize
|
4210
|
+
----------------------------------------------------
|
4211
|
+
Processing by AuthorizedController#index as HTML
|
4212
|
+
Rendering authorized/index.html.erb within layouts/application
|
4213
|
+
Rendered authorized/index.html.erb within layouts/application (1.1ms)
|
4214
|
+
Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.0ms)
|
4215
|
+
Processing by AuthorizedController#index as HTML
|
4216
|
+
Redirected to http://test.host/admin/auth/login?origin=%2Fauthorized
|
4217
|
+
Filter chain halted as :authorize rendered or redirected
|
4218
|
+
Completed 302 Found in 1ms (Views: 10.9ms | ActiveRecord: 0.0ms)
|
4219
|
+
Processing by AuthorizedController#index as HTML
|
4220
|
+
Rendering authorized/index.html.erb within layouts/application
|
4221
|
+
Rendered authorized/index.html.erb within layouts/application (0.0ms)
|
4222
|
+
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
4223
|
+
Processing by AuthorizedController#index as HTML
|
4224
|
+
Redirected to http://test.host/admin/auth/unauthorized
|
4225
|
+
Filter chain halted as :authorize rendered or redirected
|
4226
|
+
Completed 302 Found in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
4227
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4228
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4229
|
+
--------------------------------------
|
4230
|
+
Kadmin::AuthControllerTest: test_login
|
4231
|
+
--------------------------------------
|
4232
|
+
Processing by Kadmin::AuthController#login as HTML
|
4233
|
+
Rendering /Users/npepinpe/work/github/barcoo/kadmin/app/views/kadmin/auth/login.html.erb within layouts/kadmin/application
|
4234
|
+
Rendered /Users/npepinpe/work/github/barcoo/kadmin/app/views/kadmin/auth/login.html.erb within layouts/kadmin/application (4.8ms)
|
4235
|
+
Rendered /Users/npepinpe/work/github/barcoo/kadmin/app/views/kadmin/helpers/_alerts.html.erb (0.4ms)
|
4236
|
+
Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.0ms)
|
4237
|
+
Processing by Kadmin::AuthController#login as HTML
|
4238
|
+
Redirected to http://test.host/admin/
|
4239
|
+
Completed 302 Found in 2ms (Views: 12.8ms | ActiveRecord: 0.0ms)
|
4240
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
4241
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4242
|
+
-------------------------------------
|
4243
|
+
Kadmin::AuthControllerTest: test_save
|
4244
|
+
-------------------------------------
|
4245
|
+
Processing by Kadmin::AuthController#save as HTML
|
4246
|
+
Parameters: {"provider"=>"developer"}
|
4247
|
+
No authorization hash provided
|
4248
|
+
Redirected to http://test.host/admin/auth/login
|
4249
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
4250
|
+
Processing by Kadmin::AuthController#save as HTML
|
4251
|
+
Parameters: {"provider"=>"developer"}
|
4252
|
+
Redirected to http://test.host/admin/auth/login
|
4253
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
4254
|
+
Processing by Kadmin::AuthController#save as HTML
|
4255
|
+
Parameters: {"provider"=>"developer"}
|
4256
|
+
Redirected to http://test.host/admin/
|
4257
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
4258
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4259
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4260
|
+
----------------------------------------
|
4261
|
+
Kadmin::AuthControllerTest: test_failure
|
4262
|
+
----------------------------------------
|
4263
|
+
Processing by Kadmin::AuthController#failure as HTML
|
4264
|
+
Parameters: {"message"=>"failed"}
|
4265
|
+
Redirected to http://test.host/admin/auth/login?origin=origin
|
4266
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
4267
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4268
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4269
|
+
---------------------------------------
|
4270
|
+
Kadmin::AuthControllerTest: test_logout
|
4271
|
+
---------------------------------------
|
4272
|
+
Processing by Kadmin::AuthController#logout as HTML
|
4273
|
+
Redirected to http://test.host/admin/auth/login
|
4274
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
4275
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4276
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4277
|
+
-------------------------------
|
4278
|
+
Kadmin::FinderTest: test_filter
|
4279
|
+
-------------------------------
|
4280
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4281
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:48:50 UTC], ["updated_at", 2016-12-14 09:48:50 UTC]]
|
4282
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4283
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4284
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:48:50 UTC], ["updated_at", 2016-12-14 09:48:50 UTC]]
|
4285
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4286
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" WHERE (`people`.`first_name` LIKE '%John%' OR `people`.`last_name` LIKE '%John%')[0m
|
4287
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" WHERE (`people`.`first_name` LIKE '%John%' OR `people`.`last_name` LIKE '%John%') AND (`people`.`first_name` LIKE '%Jane%' OR `people`.`last_name` LIKE '%Jane%')[0m
|
4288
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
4289
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4290
|
+
--------------------------------
|
4291
|
+
Kadmin::FinderTest: test_results
|
4292
|
+
--------------------------------
|
4293
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4294
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:48:50 UTC], ["updated_at", 2016-12-14 09:48:50 UTC]]
|
4295
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4296
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4297
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:48:50 UTC], ["updated_at", 2016-12-14 09:48:50 UTC]]
|
4298
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4299
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people"[0m
|
4300
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "people"[0m
|
4301
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" LIMIT ? OFFSET ?[0m [["LIMIT", 1], ["OFFSET", 1]]
|
4302
|
+
[1m[36mPerson Load (0.1ms)[0m [1m[34mSELECT "people".* FROM "people" ORDER BY "people"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
4303
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
4304
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4305
|
+
---------------------------------
|
4306
|
+
Kadmin::FinderTest: test_paginate
|
4307
|
+
---------------------------------
|
4308
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4309
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:48:50 UTC], ["updated_at", 2016-12-14 09:48:50 UTC]]
|
4310
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4311
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4312
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:48:50 UTC], ["updated_at", 2016-12-14 09:48:50 UTC]]
|
4313
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4314
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
4315
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4316
|
+
------------------------------
|
4317
|
+
Kadmin::FinderTest: test_find!
|
4318
|
+
------------------------------
|
4319
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4320
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:48:50 UTC], ["updated_at", 2016-12-14 09:48:50 UTC]]
|
4321
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4322
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4323
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Johnson"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:48:50 UTC], ["updated_at", 2016-12-14 09:48:50 UTC]]
|
4324
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4325
|
+
[1m[36mPerson Load (0.0ms)[0m [1m[34mSELECT "people".* FROM "people"[0m
|
4326
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "people"[0m
|
4327
|
+
[1m[36mPerson Load (0.0ms)[0m [1m[34mSELECT "people".* FROM "people" LIMIT ? OFFSET ?[0m [["LIMIT", 1], ["OFFSET", 1]]
|
4328
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
4329
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4330
|
+
------------------------------------------------
|
4331
|
+
Kadmin::Navbar::Link::PresenterTest: test_render
|
4332
|
+
------------------------------------------------
|
4333
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4334
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4335
|
+
-------------------------------------------------------
|
4336
|
+
Kadmin::Navbar::Link::PresenterTest: test_render_active
|
4337
|
+
-------------------------------------------------------
|
4338
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4339
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4340
|
+
---------------------------------
|
4341
|
+
Kadmin::FormTest: test_initialize
|
4342
|
+
---------------------------------
|
4343
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4344
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "first"], ["last_name", "last"], ["gender", "m"], ["date_of_birth", Sun, 14 Dec 2014], ["created_at", 2016-12-14 09:48:50 UTC], ["updated_at", 2016-12-14 09:48:50 UTC]]
|
4345
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4346
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
4347
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
4348
|
+
--------------------------------------
|
4349
|
+
Kadmin::PagerTest: test_initialization
|
4350
|
+
--------------------------------------
|
4351
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4352
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4353
|
+
-------------------------------------
|
4354
|
+
Kadmin::PagerTest: test_current_page?
|
4355
|
+
-------------------------------------
|
4356
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4357
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4358
|
+
--------------------------------------
|
4359
|
+
Kadmin::PagerTest: test_previous_page?
|
4360
|
+
--------------------------------------
|
4361
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4362
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4363
|
+
---------------------------------
|
4364
|
+
Kadmin::PagerTest: test_page_size
|
4365
|
+
---------------------------------
|
4366
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
4367
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4368
|
+
----------------------------------
|
4369
|
+
Kadmin::PagerTest: test_next_page?
|
4370
|
+
----------------------------------
|
4371
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4372
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4373
|
+
---------------------------------
|
4374
|
+
Kadmin::PagerTest: test_offset_at
|
4375
|
+
---------------------------------
|
4376
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
4377
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4378
|
+
--------------------------------
|
4379
|
+
Kadmin::PagerTest: test_paginate
|
4380
|
+
--------------------------------
|
4381
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4382
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "John"], ["last_name", "Doe"], ["gender", "m"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:48:50 UTC], ["updated_at", 2016-12-14 09:48:50 UTC]]
|
4383
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4384
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4385
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "people" ("first_name", "last_name", "gender", "date_of_birth", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["first_name", "Jane"], ["last_name", "Doe"], ["gender", "f"], ["date_of_birth", Sat, 14 Dec 1991], ["created_at", 2016-12-14 09:48:50 UTC], ["updated_at", 2016-12-14 09:48:50 UTC]]
|
4386
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4387
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "people"[0m
|
4388
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
4389
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4390
|
+
------------------------------
|
4391
|
+
Kadmin::PagerTest: test_total=
|
4392
|
+
------------------------------
|
4393
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
4394
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
4395
|
+
---------------------------------
|
4396
|
+
Kadmin::PagerTest: test_contains?
|
4397
|
+
---------------------------------
|
4398
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
data/test/test_helper.rb
CHANGED
@@ -33,7 +33,7 @@ require 'kadmin/presenter/test_case'
|
|
33
33
|
# Set sane defaults for all TestCases
|
34
34
|
module ActiveSupport
|
35
35
|
class TestCase
|
36
|
-
self.
|
36
|
+
self.use_transactional_tests = true
|
37
37
|
|
38
38
|
def setup
|
39
39
|
# Need to explicitly mount engine routes, otherwise the test cannot find them. Retarded, right?
|
@@ -17,3 +17,14 @@
|
|
17
17
|
.fa {
|
18
18
|
font-family: 'FontAwesomeRails' !important; // sass-lint:disable-line no-important
|
19
19
|
}
|
20
|
+
|
21
|
+
// Temporary bootstrap fix until Modular updates bootstrap version
|
22
|
+
select {
|
23
|
+
&.form-control {
|
24
|
+
&:not([size]) {
|
25
|
+
&:not([multiple]) { // sass-lint:disable-line nesting-depth
|
26
|
+
height: calc(2.5rem - 2px);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Pepin-Perreault
|
@@ -10,22 +10,28 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '4.2'
|
22
|
+
- - "~>"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 5.0.0
|
22
25
|
type: :runtime
|
23
26
|
prerelease: false
|
24
27
|
version_requirements: !ruby/object:Gem::Requirement
|
25
28
|
requirements:
|
26
|
-
- - "
|
29
|
+
- - ">="
|
27
30
|
- !ruby/object:Gem::Version
|
28
31
|
version: '4.2'
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 5.0.0
|
29
35
|
- !ruby/object:Gem::Dependency
|
30
36
|
name: i18n
|
31
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,6 +172,7 @@ files:
|
|
166
172
|
- test/dummy/app/forms/group_form.rb
|
167
173
|
- test/dummy/app/forms/person_form.rb
|
168
174
|
- test/dummy/app/helpers/application_helper.rb
|
175
|
+
- test/dummy/app/models/application_record.rb
|
169
176
|
- test/dummy/app/models/group.rb
|
170
177
|
- test/dummy/app/models/group_person.rb
|
171
178
|
- test/dummy/app/models/person.rb
|
@@ -1455,6 +1462,7 @@ test_files:
|
|
1455
1462
|
- test/dummy/app/forms/group_form.rb
|
1456
1463
|
- test/dummy/app/forms/person_form.rb
|
1457
1464
|
- test/dummy/app/helpers/application_helper.rb
|
1465
|
+
- test/dummy/app/models/application_record.rb
|
1458
1466
|
- test/dummy/app/models/group.rb
|
1459
1467
|
- test/dummy/app/models/group_person.rb
|
1460
1468
|
- test/dummy/app/models/person.rb
|