mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
fix subscription test
This commit is contained in:
parent
150e58d47f
commit
baa692dfb9
168
test/fixtures/users.yml
vendored
168
test/fixtures/users.yml
vendored
@ -1,57 +1,57 @@
|
||||
|
||||
user_2:
|
||||
id: 2
|
||||
username: jdupont
|
||||
email: jean.dupont@gmail.com
|
||||
username: jdupond
|
||||
email: jean.dupond@gmail.com
|
||||
encrypted_password: "$2a$10$M41moTmI.I4xNVeOPzS1JeplUM0B5b0KfQqBZ./fgHZVn7BcIAY.m"
|
||||
reset_password_token:
|
||||
reset_password_sent_at:
|
||||
remember_created_at:
|
||||
reset_password_token:
|
||||
reset_password_sent_at:
|
||||
remember_created_at:
|
||||
sign_in_count: 1
|
||||
current_sign_in_at: 2016-04-04 15:00:29.439018000 Z
|
||||
last_sign_in_at: 2016-04-04 15:00:29.439018000 Z
|
||||
current_sign_in_ip: 127.0.0.1
|
||||
last_sign_in_ip: 127.0.0.1
|
||||
confirmation_token:
|
||||
confirmation_token:
|
||||
confirmed_at: 2016-04-04 15:00:43.555678000 Z
|
||||
confirmation_sent_at: 2016-04-04 15:00:29.424011000 Z
|
||||
unconfirmed_email:
|
||||
unconfirmed_email:
|
||||
failed_attempts: 0
|
||||
unlock_token:
|
||||
locked_at:
|
||||
unlock_token:
|
||||
locked_at:
|
||||
created_at: 2016-04-04 15:00:29.107434000 Z
|
||||
updated_at: 2016-04-04 15:00:43.556308000 Z
|
||||
is_allow_contact: true
|
||||
group_id: 1
|
||||
stp_customer_id: cus_8CzAgnSeFbDuG2
|
||||
slug: jdupont
|
||||
stp_customer_id: cus_8Di1wjdVktv5kt
|
||||
slug: jdupond
|
||||
is_active: true
|
||||
invoicing_disabled: false
|
||||
provider:
|
||||
uid:
|
||||
auth_token:
|
||||
merged_at:
|
||||
provider:
|
||||
uid:
|
||||
auth_token:
|
||||
merged_at:
|
||||
|
||||
user_4:
|
||||
id: 4
|
||||
username: kdumas
|
||||
email: kevin.dumas@orange.fr
|
||||
encrypted_password: "$2a$10$N6Q4SHkkUtwlnMNFvN6nF.rkmLFTIPsARk7xEuR1Dws7Dy2sSrSOW"
|
||||
reset_password_token:
|
||||
reset_password_sent_at:
|
||||
remember_created_at:
|
||||
reset_password_token:
|
||||
reset_password_sent_at:
|
||||
remember_created_at:
|
||||
sign_in_count: 0
|
||||
current_sign_in_at:
|
||||
last_sign_in_at:
|
||||
current_sign_in_ip:
|
||||
last_sign_in_ip:
|
||||
confirmation_token:
|
||||
current_sign_in_at:
|
||||
last_sign_in_at:
|
||||
current_sign_in_ip:
|
||||
last_sign_in_ip:
|
||||
confirmation_token:
|
||||
confirmed_at: 2016-04-04 15:11:02.968494000 Z
|
||||
confirmation_sent_at: 2016-04-04 15:10:42.376191000 Z
|
||||
unconfirmed_email:
|
||||
unconfirmed_email:
|
||||
failed_attempts: 0
|
||||
unlock_token:
|
||||
locked_at:
|
||||
unlock_token:
|
||||
locked_at:
|
||||
created_at: 2016-04-04 15:10:42.340868000 Z
|
||||
updated_at: 2016-04-04 15:11:02.969182000 Z
|
||||
is_allow_contact: true
|
||||
@ -59,32 +59,32 @@ user_4:
|
||||
stp_customer_id: cus_8CzKe50I0J1gaI
|
||||
slug: kdumas
|
||||
is_active: true
|
||||
invoicing_disabled:
|
||||
provider:
|
||||
uid:
|
||||
auth_token:
|
||||
merged_at:
|
||||
invoicing_disabled:
|
||||
provider:
|
||||
uid:
|
||||
auth_token:
|
||||
merged_at:
|
||||
|
||||
user_6:
|
||||
id: 6
|
||||
username: GilbertPartenaire
|
||||
email: gilbert.partenaire@nicolas.com
|
||||
encrypted_password: "$2a$10$UtWcIYMd2aOtQjw6OFL4cuMV1MB20Bfs/opzJDqWXqu8woUo.2cLu"
|
||||
reset_password_token:
|
||||
reset_password_sent_at:
|
||||
remember_created_at:
|
||||
reset_password_token:
|
||||
reset_password_sent_at:
|
||||
remember_created_at:
|
||||
sign_in_count: 0
|
||||
current_sign_in_at:
|
||||
last_sign_in_at:
|
||||
current_sign_in_ip:
|
||||
last_sign_in_ip:
|
||||
confirmation_token:
|
||||
confirmed_at:
|
||||
confirmation_sent_at:
|
||||
unconfirmed_email:
|
||||
current_sign_in_at:
|
||||
last_sign_in_at:
|
||||
current_sign_in_ip:
|
||||
last_sign_in_ip:
|
||||
confirmation_token:
|
||||
confirmed_at:
|
||||
confirmation_sent_at:
|
||||
unconfirmed_email:
|
||||
failed_attempts: 0
|
||||
unlock_token:
|
||||
locked_at:
|
||||
unlock_token:
|
||||
locked_at:
|
||||
created_at: 2016-04-04 15:17:12.522028000 Z
|
||||
updated_at: 2016-04-04 15:17:12.522028000 Z
|
||||
is_allow_contact: true
|
||||
@ -93,31 +93,31 @@ user_6:
|
||||
slug: gilbertpartenaire
|
||||
is_active: true
|
||||
invoicing_disabled: false
|
||||
provider:
|
||||
uid:
|
||||
auth_token:
|
||||
merged_at:
|
||||
provider:
|
||||
uid:
|
||||
auth_token:
|
||||
merged_at:
|
||||
|
||||
user_5:
|
||||
id: 5
|
||||
username: vlonchamp
|
||||
email: vanessa.lonchamp@sfr.fr
|
||||
encrypted_password: "$2a$10$HOEk.QyGwpd9nsk2gVXGSuAxig9jMrNFHVqYMW1.Sp41EtN7rdBbG"
|
||||
reset_password_token:
|
||||
reset_password_sent_at:
|
||||
remember_created_at:
|
||||
reset_password_token:
|
||||
reset_password_sent_at:
|
||||
remember_created_at:
|
||||
sign_in_count: 1
|
||||
current_sign_in_at: 2016-04-04 15:34:23.343596000 Z
|
||||
last_sign_in_at: 2016-04-04 15:34:23.343596000 Z
|
||||
current_sign_in_ip: 127.0.0.1
|
||||
last_sign_in_ip: 127.0.0.1
|
||||
confirmation_token: 59cfd407491c4e1d95a9f91f81e710a62a83a6fd7171ad22823b4c4395312c4d
|
||||
confirmed_at:
|
||||
confirmed_at:
|
||||
confirmation_sent_at: 2016-04-04 15:14:08.599603000 Z
|
||||
unconfirmed_email:
|
||||
unconfirmed_email:
|
||||
failed_attempts: 0
|
||||
unlock_token:
|
||||
locked_at:
|
||||
unlock_token:
|
||||
locked_at:
|
||||
created_at: 2016-04-04 15:14:08.563152000 Z
|
||||
updated_at: 2016-04-04 15:34:23.344613000 Z
|
||||
is_allow_contact: true
|
||||
@ -125,32 +125,32 @@ user_5:
|
||||
stp_customer_id: cus_8CzNtM08NVlSGN
|
||||
slug: vlonchamp
|
||||
is_active: true
|
||||
invoicing_disabled:
|
||||
provider:
|
||||
uid:
|
||||
auth_token:
|
||||
merged_at:
|
||||
invoicing_disabled:
|
||||
provider:
|
||||
uid:
|
||||
auth_token:
|
||||
merged_at:
|
||||
|
||||
user_3:
|
||||
id: 3
|
||||
username: pdurand
|
||||
email: paulette.durand@hotmail.fr
|
||||
encrypted_password: "$2a$10$Ri5kcxmonFsZDDWLxjVUy.KoM2coBmB.W6ED11KDDaAuaBV8dVsim"
|
||||
reset_password_token:
|
||||
reset_password_sent_at:
|
||||
remember_created_at:
|
||||
reset_password_token:
|
||||
reset_password_sent_at:
|
||||
remember_created_at:
|
||||
sign_in_count: 2
|
||||
current_sign_in_at: 2016-04-05 08:35:05.676918000 Z
|
||||
last_sign_in_at: 2016-04-04 15:07:46.733781000 Z
|
||||
current_sign_in_ip: 127.0.0.1
|
||||
last_sign_in_ip: 127.0.0.1
|
||||
confirmation_token:
|
||||
confirmation_token:
|
||||
confirmed_at: 2016-04-04 15:08:00.893381000 Z
|
||||
confirmation_sent_at: 2016-04-04 15:07:46.726886000 Z
|
||||
unconfirmed_email:
|
||||
unconfirmed_email:
|
||||
failed_attempts: 0
|
||||
unlock_token:
|
||||
locked_at:
|
||||
unlock_token:
|
||||
locked_at:
|
||||
created_at: 2016-04-04 15:07:46.675613000 Z
|
||||
updated_at: 2016-04-05 08:35:05.678582000 Z
|
||||
is_allow_contact: false
|
||||
@ -159,31 +159,31 @@ user_3:
|
||||
slug: pdurand
|
||||
is_active: true
|
||||
invoicing_disabled: false
|
||||
provider:
|
||||
uid:
|
||||
auth_token:
|
||||
merged_at:
|
||||
provider:
|
||||
uid:
|
||||
auth_token:
|
||||
merged_at:
|
||||
|
||||
user_1:
|
||||
id: 1
|
||||
username: admin
|
||||
email: admin@fab-manager.com
|
||||
encrypted_password: "$2a$10$LtQ2OggropcXpmcsPTEPruuGZrwuFYGOo8qjh.po91YDna/K4/Bbe"
|
||||
reset_password_token:
|
||||
reset_password_sent_at:
|
||||
remember_created_at:
|
||||
reset_password_token:
|
||||
reset_password_sent_at:
|
||||
remember_created_at:
|
||||
sign_in_count: 8
|
||||
current_sign_in_at: 2016-04-05 08:36:08.361260000 Z
|
||||
last_sign_in_at: 2016-04-05 08:34:28.227054000 Z
|
||||
current_sign_in_ip: 127.0.0.1
|
||||
last_sign_in_ip: 127.0.0.1
|
||||
confirmation_token:
|
||||
confirmed_at:
|
||||
confirmation_sent_at:
|
||||
unconfirmed_email:
|
||||
confirmation_token:
|
||||
confirmed_at:
|
||||
confirmation_sent_at:
|
||||
unconfirmed_email:
|
||||
failed_attempts: 0
|
||||
unlock_token:
|
||||
locked_at:
|
||||
unlock_token:
|
||||
locked_at:
|
||||
created_at: 2016-04-04 14:11:33.852719000 Z
|
||||
updated_at: 2016-04-05 08:36:08.362215000 Z
|
||||
is_allow_contact: true
|
||||
@ -192,7 +192,7 @@ user_1:
|
||||
slug: admin
|
||||
is_active: true
|
||||
invoicing_disabled: false
|
||||
provider:
|
||||
uid:
|
||||
auth_token:
|
||||
merged_at:
|
||||
provider:
|
||||
uid:
|
||||
auth_token:
|
||||
merged_at:
|
||||
|
@ -2,12 +2,11 @@ class SubscriptionsTest < ActionDispatch::IntegrationTest
|
||||
|
||||
|
||||
setup do
|
||||
@user = User.find_by_username('jdupont')
|
||||
@user = User.find_by_username('jdupond')
|
||||
login_as(@user, scope: :user)
|
||||
end
|
||||
|
||||
test "user take a subscription" do
|
||||
skip
|
||||
plan = Plan.where(group_id: @user.group.id, type: 'Plan').first
|
||||
|
||||
post '/api/subscriptions',
|
||||
|
Loading…
x
Reference in New Issue
Block a user